Admin API / Mutations

deleteProducts

Deletes 1 to 100 listings. It resolves their open listing reports, cancels their auctions and removes them from scheduled and live shows. The caller's own listings need the SELLER role. Another seller's listing needs the MODERATOR role, or ADMIN when it is hidden; staff of a store cannot delete the store owner's listings. A listing with an auction bid or a started giveaway is not deleted. One result per input ID, in input order; a failed listing does not stop the others. A repeat returns ProductNotFoundError for listings that the first call deleted. No mutation restores a deleted listing.

Requires a client key with one of these scopes: admin:products:deleteRequires this member role or higher: SELLER
deleteProducts(
  input: DeleteProductsInput!
): DeleteProductsPayload!

Arguments

ArgumentTypeDescription
inputDeleteProductsInput!The listings to delete.

Return type

DeleteProductsPayload!