Boats
Delete Boat
Permanently delete a boat listing
DELETE
/boats/:idPermanently delete a boat listing and all associated data. The requesting user must be an admin or owner of the company that owns the boat.
Authentication
Requires one of:
- API key:
X-API-Keyheader with your owner API key (cb_live_*) - Session: Authenticated user session (cookie-based)
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Boat UUID |
Prerequisites
The boat must have no open bookings. Open booking statuses are:
pending-- awaiting owner approvalaccepted-- awaiting guest paymentconfirmed-- paid and scheduled
Cancel or complete all bookings before deleting.
Request
Response
What Gets Deleted
When a boat is deleted, the following data is permanently removed:
- Boat record and all fields
- All boat images (from storage and database)
- Amenity associations
- Calendar blocks
- External calendar events
- Calendar sources (iCal imports)
- Favorites from all users
Completed and cancelled bookings are retained for record-keeping.
Errors
| Status | Message |
|---|---|
400 | Boat ID is required |
400 | Cannot delete boat with N open booking(s). Please cancel or complete all bookings first. |
401 | Invalid API key |
401 | Invalid API key format |
403 | Not authorized to delete this boat (not a company admin/owner) |
404 | Boat not found |