Delete organization
Soft deletes an organization and all associated projects. The organization and its projects will be marked as deleted but not permanently removed from the database.
What happens:
- The organization is marked as deleted (soft delete)
- All associated projects are also soft deleted
- Organization members (contacts) are not deleted
- Historical data (invoices, journal entries, etc.) remains intact
- The organization will no longer appear in normal listings
Recovery: Soft-deleted organizations can potentially be recovered through database operations, but this is not exposed via the API.
Note: This endpoint requires the Organizations.delete permission. The organization must exist in your workspace. This operation cannot be undone via the API.
DELETE
/organizations/{id}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredResponses
200
successbooleanrequiredOperation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X DELETE "https://leadtime.app/api/public/organizations/string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/organizations/string", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/organizations/string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions