pagehive

delete_shop_file

Deletes a shop file by name.

ShopsChanges dataPro and upUpdated

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

NameTypeAbout
site_idrequiredstringThe id of the site. list_sites gives the ids of your sites.
namerequiredstringThe 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