What it does
Deletes a shop file by name. Refused while a product names it as its download (clear that first). Buyers who bought it can no longer download it. Needs can_shop.
Plans
Needs a paid plan: Pro or Ultra. On other plans your agent gets an error that says so. See Limits for what each plan includes.
Parameters
| Name | Type | About |
|---|---|---|
site_idrequired | string | The id of the site. list_sites gives the ids of your sites. |
namerequired | string | The file's name, from list_shop_files. |
Example
Call delete_shop_file with these arguments:
{
"site_id": "01a1…",
"name": "guide.pdf"
}
Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.
Related guides
- Digital downloadsSell files: ebooks, music, templates, courses.