curl -X DELETE "https://api.nextdns.io/profiles/$PROFILE_ID" \
-H "X-Api-Key: $NEXTDNS_API_KEY"
Profiles
Delete or leave a profile
Delete a profile you own or remove your access to a shared profile.
DELETE
/
profiles
/
{profile}
curl -X DELETE "https://api.nextdns.io/profiles/$PROFILE_ID" \
-H "X-Api-Key: $NEXTDNS_API_KEY"
The result depends on your role in the profile.
Both operations return 204 No Content on success. Repeating the request after you delete or leave the profile returns
| Your role | Result |
|---|---|
| Owner | Permanently deletes the profile for everyone. |
| Editor or viewer | Removes your access. The owner and other members keep the profile. |
curl -X DELETE "https://api.nextdns.io/profiles/$PROFILE_ID" \
-H "X-Api-Key: $NEXTDNS_API_KEY"
404 Not Found.