Skip to main content

Delete Product Filter

Permanently deletes a product filter and removes it from your storefront.

HTTP Request​

  • URL: /productFilter/{id}
  • Method: DELETE
  • Headers:
    • accessToken: Required. Your API access token.
  • Required scope: READ_WRITE_PRODUCT

Path Parameters​

ParameterTypeDescription
idStringRequired. The ID of the product filter to delete.

cURL Example​

curl --location --request DELETE '<BASE_URL>/productFilter/6704b8e2c9a1d2e3f4a5b6c7' \
--header 'accessToken: <ACCESS_TOKEN>'

Response​

  • 200 OK: The product filter was deleted successfully.
  • 400 Bad Request: The access token is missing or invalid, or the product filter ID is not valid.

Sample JSON Response​

{
"success": true,
"message": "ProductFilter deleted successfully"
}

Response Details​

FieldTypeDescription
successBooleantrue when the request succeeded.
messageStringConfirmation message.

Notes​

  • Deleting a product filter cannot be undone. To hide a filter but keep its settings, set its status to false with Update Product Filter Status.