delete
https://{subdomain}.myshoplaza.com/openapi/2025-06/themes//doc
Delete a specific theme's doc file using theme's unique identifier.
Requireswrite_themesaccess scope. More access scope
The Delete Theme File API allows developers to delete a specific documentation file from a theme in your Shoplazza store. It provides a way to remove unwanted or outdated template files, snippet files, or other document types from your theme's structure.
This API is especially useful for:
- Removing deprecated or unused template files to clean up your theme.
- Deleting outdated snippet files that are no longer needed.
- Managing theme file organization by eliminating unnecessary documentation files.
- Maintaining a lean theme structure by removing obsolete components.
Request Parameters
Public Request Parameters
Path Parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
theme_id | string | Yes | 1500021b-88ed-4750-bbc5-97ec98351dc0 | Theme's unique identifier. |
Body Parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
|
| No | The type of file to delete. |
|
|
| No | The path location of the file to delete within the theme. Defaults to 'a.js'. |
|
Response Explanation
Public Response Parameters
Successful Response
| Parameter | Type | Example | Description |
|---|---|---|---|
code | string | "success" | Status code of the response |
message | string | "OK" | Descriptive message of the response |
Error Response
| Field | Type | Example | Description |
|---|---|---|---|
code | string | InvalidParameter | Error http message |
message | string | `` | Error message |
