delete_theme_files
Delete one or more files from a Shopify theme by filename. Requires write_themes access scope.
Instructions
Delete one or more files from a theme by filename. Requires write_themes access scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme_id | Yes | The GID of the theme (e.g. 'gid://shopify/OnlineStoreTheme/123'). | |
| filenames | Yes | Filenames of the files to delete (e.g. ['assets/old.css', 'sections/deprecated.liquid']). |