# Delete an inbox Deleting an inbox permanently removes it and all of its messages. This action cannot be undone. ## Delete an inbox in the Dashboard 1. Navigate to the inbox you want to delete. 2. Click the **Settings** tab. 3. Scroll to the bottom and click **Delete**. 4. Confirm the deletion. ## Delete an inbox via the API Send a `DELETE` request to the servers endpoint: ```bash curl -X DELETE \ -u "key:YOUR_API_KEY" \ "https://mailosaur.com/api/servers/SERVER_ID" ``` Replace `YOUR_API_KEY` with your API key and `SERVER_ID` with the inbox ID. > [!WARNING] > Inbox-restricted API keys cannot delete inboxes. Use a standard API key for this operation. ## What happens when you delete an inbox - All messages in the inbox are permanently deleted. - Any phone numbers linked to the inbox are unlinked. - Any forwarding rules configured on the inbox are deleted. - The inbox's unique domain and ID are released and cannot be recovered.