# Delete a thread

> Remove a public or private thread.

Source: https://docs.buildcord.dev/nodes/server/delete-thread/

`server.threadDelete` deletes a thread and its messages.

## Settings

| Setting | What it does |
| --- | --- |
| Thread | The thread to delete. Defaults to `{thread}`. |
| Audit log reason | The reason Discord records. |

## Ways out

`out`. Turn on **If it fails** for a red way out.

## Notes

- You can't undo it. To keep the history, use [Edit a thread](https://docs.buildcord.dev/nodes/server/edit-thread) to archive it instead.
- The bot needs the Manage Threads permission.

## Related

- [Create a thread](https://docs.buildcord.dev/nodes/server/create-thread)
