Skip to main content
POST
/
websites
/
delete
Delete Project
curl --request POST \
  --url https://api.example.com/websites/delete \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>"
}
'
{
  "success": true,
  "error": "<string>"
}

Authentication

Requires either:
  • Session authentication with delete permission on the website
  • API key with delete permission

Request Body

id
string
required
Website ID to delete

Response

success
boolean
Always true if deletion succeeded

Behavior

Deleting a website:
  • Performs a soft delete (data is retained for recovery)
  • Stops accepting new tracking events for this clientId
  • Removes website from dashboard listings
  • Analytics data remains queryable for 90 days
  • Can be restored by contacting support within 90 days

Example Request

curl -X POST https://api.databuddy.cc/websites/delete \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "web_xyz789"
  }'

Example Response

{
  "success": true
}

Error Responses

error
string
Error message if deletion fails
{
  "error": "Website not found",
  "code": "NOT_FOUND"
}

Build docs developers (and LLMs) love