Actions25
- Product Actions
- Category Actions
- Customer Actions
- Order Actions
- Inventory Actions
- Store Actions
Category → Delete
AI-generatedSummary
Delete a category via Magento REST API
Inputs
- categoryId (required) — Category ID
- 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 Magento REST API response for category deletion, optionally simplified when simplifyOutput is enabled.
Custom_attributes array is converted to an object, extension_attributes are flattened into top-level keys, and nested structures are simplified.
Examples
Example 1: Delete category with ID 5 using default store view
categoryId: 5, websiteCode: (default), simplifyOutput: false
Example 2: Delete category with ID 12 under a specific store view and simplified output
categoryId: 12, websiteCode: 'default', simplifyOutput: true