DELETE
/
styles
/
{id}
Delete
curl --request DELETE \
  --url https://api.buybase.ai/styles/{id} \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "profile_id": "<string>"
}'
{
  "success": true,
  "message": "Profile \"prof_12345\" deleted successfully",
  "code": "PROFILE_DELETED"
}

Headers

authorization
string
required
Your API key for authorization.

Body Parameters

profile_id
string
required
The ID of the profile to delete.

Response

success
boolean
Indicates whether the operation was successful.
message
string
A message confirming the deletion.
code
string
A code indicating the result of the operation. Possible values:
  • PROFILE_DELETED: Profile deleted successfully
  • PROFILE_DELETE_FAILED: Failed to delete profile
error
string
Error message if the request fails.
Deleting a profile will permanently remove it and all associated data. This action cannot be undone.
{
  "success": true,
  "message": "Profile \"prof_12345\" deleted successfully",
  "code": "PROFILE_DELETED"
}