Version: 202506
Delete theme file
DELETE/openapi/2025-06/themes/:theme_id/doc
Delete a specific theme file by theme ID, file type, and file location.
Request
Path Parameters
theme_id stringrequired
Theme's unique identifier
- application/json
- Body
- Example
Bodyrequired
typestring
The type of file to delete (layout, templates, sections, snippets, assets, config, locales etc.). Defaults to assets
Default value:
assetslocationstring
The location of the file within the theme. Defaults to a.js
Default value:
a.js{
"type": "assets",
"location": "a.js"
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
object
{
"code": "string",
"message": "string",
"data": {}
}