Delete Theme

🔒

Requires write_themes access scope. More access scope

The Delete Theme API allows users to remove a theme from the store. This action cannot be undone, so ensure that the theme is no longer needed before deleting it.

This API is especially useful for:

  1. Managing and cleaning up unused themes in the store.
  2. Automating the deletion of outdated or unneeded themes.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Parameters

NameTypeDescriptionExample
theme_idstringThe unique ID of the theme to be deleted.1500021b-88ed-4750-bbc5-97ec98351dc0

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response

FieldTypeDescriptionExample
stateintegerThe state of the response (0 indicates success).0
msgstringA message indicating the result of the operation.请求成功

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorString "store is not active"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!