« Back to Product

Documentation

IPS_DeleteCategory

 bool IPS_DeleteCategory (int $CategoryID) 

Parameters

CategoryID

ID of the category to be deleted

Returns

If the function succeeds, it returns TRUE, otherwise FALSE.

Description

The function deletes the existing category with the ID CategoryID.

Warning

The category can only be deleted if it has no child objects. Otherwise, the function fails with "Cannot delete category if it has child objects".

Example

// Delete the category 47788
IPS_DeleteCategory(47788);
Any questions?