Delete service station
DELETE/api/oil/:id
Endpoint to permanently delete a service station from the system.### Deletion Process:- Deletes the station's record from the database- Deletes any associated image from S3 (if it exists)- Updates references in other systems### Considerations:- The operation is irreversible- A station with associated active operations cannot be deleted- Deactivating (isActive: false) is recommended over deletion when possible### Use Cases:- Removal of duplicate stations- Permanent closure of stations- Cleanup of test data### Usage Example:DELETE /api/oil/5f8d0d55b54764421b7156daHeaders: X-API-KEY: your-api-key
Request
Responses
- 204
- 404
Station successfully removed. No content returned.Status code 204 indicates success with no response content.
Station not found with the provided ID.Please verify that the ID is correct and that the station exists.