Companies
Delete Company
DELETE
Delete Company
Delete a company by ID. By default, performs a soft delete. Use the
hard_delete query parameter for permanent deletion.
Path Parameters
string
required
Company UUID
Query Parameters
boolean
default:"false"
When set to
true, permanently deletes the company. Otherwise, performs a soft delete (marks as deleted but retains data).Response
boolean
Indicates if the request was successful
string
Confirmation message
Request Examples
- Soft Delete
- Hard Delete
cURL
Response Example
200 OK
400 Bad Request
500 Internal Server Error
Error Responses
Important Notes
- Soft Delete (default): The company is marked as deleted but data is retained in the database. This allows for potential recovery and maintains referential integrity.
- Hard Delete: The company record is permanently removed from the database. This action cannot be undone.
- Deleting a company may affect related resources such as users, projects, and other associated data. Ensure you understand the implications before performing a hard delete.