Endpoint
Path Parameters
The unique identifier of the supplier to delete
Response
This endpoint returns no content on success.Example Request
Example Response
No response body is returned. Only the status code indicates success.Status Codes
204 No Content- Supplier successfully deleted404 Not Found- Supplier with the specified ID does not exist
Error Response
If the supplier is not found, the API returns a 404 status code:Important Notes
Best Practices
Soft Delete vs Hard Delete
Before permanently deleting a supplier, consider:-
Soft delete - Update the supplier to set
isActive: false: -
Hard delete - Only use when you’re certain the supplier record is no longer needed:
Check Dependencies
Before deleting a supplier, ensure:- No active products are associated with this supplier
- All historical records referencing this supplier have been handled
- You have backed up any necessary data