> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nextdns.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete or leave a profile

> Delete a profile you own or remove your access to a shared profile.

The result depends on your [role in the profile](https://docs.nextdns.io/api-reference/profiles/list.md).

| Your role | Result |
| - | - |
| Owner | Permanently deletes the profile for everyone. |
| Editor or viewer | Removes your access. The owner and other members keep the profile. |

**profile** `string` *required*

ID of the profile to delete or leave.

```bash cURL theme={null}
curl -X DELETE "https://api.nextdns.io/profiles/$PROFILE_ID" \
  -H "X-Api-Key: $NEXTDNS_API_KEY"
```

Both operations return **204 No Content** on success. Repeating the request after you delete or leave the profile returns `404 Not Found`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.