Skip to main content
DELETE
Remove a site file

Authorizations

Authorization
string
header
required

A company admin credential for your company, or a droplet installation token with the website scope for reads, except on the share routes, which refuse a droplet token.

Path Parameters

id
string<uuid>
required

The site's id.

path
string
required

The theme-style path of the file, with its slash: layouts/<name>.liquid, sections/<name>.liquid, snippets/<name>.liquid, pages/<slug>.liquid (pages/index.liquid for the home page), assets/<file> (a css, js, json, txt or html file), config/settings.json, config/menus.json, config/pages.json or config/access.json. Names use lowercase letters, digits, hyphens and underscores, with no subfolders. Any other path is refused with 422.

Pattern: ^.+$

Query Parameters

version
string

The version of the file the caller last read. The file is removed only if it is still at that version, and the request is refused with 409 if it changed. Without it the file is removed as it is.

Maximum string length: 255

Response

The file was removed.