Skip to main content

productDeleteCosts

DEPRECATED

Use productArchiveCosts instead. This mutation will be removed in the future.

Delete Product Costs (Archive)​

**⚠️ Deprecated:** Use productArchiveCosts instead. This mutation will be removed in the future.

Archives specific costs from a product. This operation is asynchronous and returns immediately with a processing status while the archiving occurs in the background.

Authentication & Permissions​

Requires authentication and the products:delete_costs permission for the product's company.

Possible Errors​

  • **Product not found**: The specified product ID doesn't exist
  • **DeleteCostsError**: Product doesn't belong to specified company or one or more cost IDs don't exist for the product
  • **Authentication error**: User not logged in or lacks required permissions
productDeleteCosts(
input: DeleteProductCostsInput!
): AsynchronousActionResponse! @deprecated

Arguments​

productDeleteCosts.input ● DeleteProductCostsInput! non-null input common​

Parameters for DeleteProductCosts

Type​

AsynchronousActionResponse object common​

Asynchronous action response type