cURL
curl --request DELETE \ --url https://api.example.com/api/profiles/{profileId}
{ "message": "<string>" }
Delete an existing profile permanently
curl -X DELETE https://api.contafy.com/api/profiles/prof_1234567890 \ -H "Authorization: Bearer YOUR_JWT_TOKEN" \ -H "Content-Type: application/json"
{ "message": "Profile deleted successfully" }
{ "error": "Unauthorized", "message": "Invalid or missing authentication token" }
{ "error": "Forbidden", "message": "You do not have permission to delete this profile" }
{ "error": "Not Found", "message": "Profile not found" }
{ "error": "Conflict", "message": "Cannot delete profile with active invoices. Please archive or transfer invoices first." }
{ "error": "Internal Server Error", "message": "An error occurred while deleting the profile" }