companyDelete
Permanently delete a company and all associated business relationships.
Key Features:
- Complete removal of company record and all related data
- Cascading deletion of dependent relationships and references
- Irreversible operation with comprehensive cleanup
- Integration with external systems for data synchronization
Business Rules:
- Company must not have active business relationships
- All child companies must be deleted or reassigned first
- Financial and legal dependencies must be resolved
- Audit trail is maintained for compliance purposes
Error Scenarios:
- COMPANY_NOT_FOUND_ERROR: When company with specified ID doesn't exist
- DEPENDENCY_ERROR: When company has active business relationships
- DELETE_ERROR: When system fails to delete company record
- ACCESS_DENIED_ERROR: When user lacks permission to delete company
Use Cases:
- Business closure and liquidation
- Data cleanup and archival
- Mergers and acquisitions
- System maintenance and cleanup
AUTH: Role=[user.OWNER]
companyDelete(
id: Int!
): Boolean!
Arguments
companyDelete.id ● Int! non-null scalar
Unique internal identifier for the company used for system operations and data relationships
Type
Boolean scalar
The Boolean scalar type represents true or false.