Sales / Lease / Exchange
Delete a sales / lease / exchange
Hard delete removes the row + storage files.
DELETE
Permanently removes a listing owned by your organization. The listing row is hard-deleted; every attached file is best-effort deleted from Supabase Storage.Documentation Index
Fetch the complete documentation index at: https://teardowns.aero/docs/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Bearer tdao_live_…Your organization’s UUID.
Path parameters
Auth requirements
Requires theseller capability. Cross-org access returns
404 not_found.
What happens, in order
- Listing is fetched and ownership checked. Otherwise 404.
listing.deletedaudit row written with key fields snapshotted inprevious_state(title, msn, listing_type, status, country).- Every URL in
documents[]andimages[]is parsed and best-effort deleted from Supabase Storage. Individual failures are logged but don’t fail the call. - The listing row is hard-deleted from the database in the same transaction as the audit write.
204 No Contentreturned.
listings (verified across all
current migrations), so there are no cascading dependents.
Response
204 No Content. Empty body.
Soft-delete alternative
status becomes archived, it drops out of browse
results, but the row and attachments stay intact.

