Delete Project
curl --request POST \
--url https://api.example.com/websites/delete \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>"
}
'{
"success": true,
"error": "<string>"
}Projects API
Delete Project
Soft-deletes a website (project) and stops tracking
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
deletepermission on the website - API key with
deletepermission
Request Body
Website ID to delete
Response
Always
true if deletion succeededBehavior
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 message if deletion fails
{
"error": "Website not found",
"code": "NOT_FOUND"
}
⌘I