Loading...
Was this page helpful?
This documentation provides a reference to the softDeleteProductCategories
method. This belongs to the Product Module.
This method is used to delete product categories. Unlike the deleteCategories method, this method won't completely remove the category. It can still be accessed or retrieved using methods like retrieveCategories if you pass the withDeleted
property to the config
object parameter.
The soft-deleted categories can be restored using the restoreCategories method.
categoryIds
string[]returnLinkableKeys
property any of the category's relation attribute names.Promise
Promise<void | Record<string, string[]>>void
.