Skip to main content
DELETE
Delete Section
Removes a section (and its blocks) from a template. The section file stays in the theme. Requires the write_themes scope.

Request

Path Parameters

string
required
The theme id.
string
required
The section’s id in the template.

Query Parameters

string
required
The template the section is on. Templates are named as in the theme’s templates/ folder: index, product, product.alternate, customers/account (URL-encode the / in a path segment), and section groups such as header-group. A path such as templates/index.json is accepted too. Also accepted as templateName or templatePath.

Response

Error Codes