Delete Service Record
Permanently delete a lubrication service record.Path Parameters
Service record ID to delete
Response
Returns a success message upon deletion.Confirmation message
Example Request
Example Response
Important Notes
Before deleting, consider if you should:
- Archive the record instead of deleting it
- Export the data for backup purposes
- Verify with the user that deletion is intended
Authorization
Only authenticated users with appropriate permissions can delete service records.
Error Responses
Service Not Found
When the specified ID doesn’t exist:Unauthorized
When the token is missing or invalid:Database Error
If there’s a database constraint violation:Best Practices
Confirm Before Delete: Always show a confirmation dialog in your UI
Soft Delete Alternative: Consider implementing a “deleted” flag instead of hard deletion
Audit Log: Keep a log of deletions for accountability
Permission Check: Verify user has delete permissions before allowing this action