Magento REST icon

Magento REST

Consume Magento REST API

Product → Delete

AI-generated

Summary

Delete a product from Magento by SKU

Inputs

  • sku (required) — Product SKU
  • websiteCode — Store view code for multi-store Magento instances (used in URL like /rest/{code}/V1/...). Options are loaded from your Magento store, but you can enter any custom store view code.
  • simplifyOutput — When enabled, flattens the response structure. Converts custom_attributes array to an object, flattens extension_attributes, and simplifies nested structures.

Output shape

The API response, optionally flattened via simplifyOutput to convert custom_attributes to an object, flatten extension_attributes, and simplify nested product structures.

If simplifyOutput is false, the raw Magento DELETE /rest/V1/products/{sku} response is returned.

Examples

Example 1: Delete product with SKU 'ABC123' in default store view

sku: 'ABC123', websiteCode: '', simplifyOutput: false

Example 2: Delete product with SKU 'XYZ789' for a specific store view

sku: 'XYZ789', websiteCode: 'default', simplifyOutput: true

Links

Discussion