Assets

Delete an asset

Removes the file at key. The editor and draft preview drop it at once; the published site drops it at the next publish. The key is the path after /assets/ — for example photos/hero.webp or style.css. Do not prefix it with assets/ or /. Keys may not contain .. segments or start with .dotsy/.

delete/api/v1/sites/{slug}/assets/{key}

Request

  • Base URL: https://api.dotsy.ai
  • URL: https://api.dotsy.ai/api/v1/sites/{slug}/assets/{key}
  • Auth: HTTP bearer

Path parameters

slugstring required
Example:acme-studio

Site slug or site id (UUID). An old slug answers 301/308 and a site id 307 to the canonical slug path.

keystring required

Percent-encode each segment; '/' may be sent raw or as %2F. Keys may contain '/'.

Response

Deleted.

oktrue required

Changes

No recorded changes to this operation across all 1 revision of this API.