This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Deletes a category.
You can specify {"deleteServices": true}
to also delete all associated
services. Learn more about deleting a service
(SDK | REST).
function deleteCategory(
_id: string,
options: DeleteCategoryOptions,
): Promise<DeleteCategoryResponse>;
ID of the category to delete.
import { categories } from "@wix/bookings";
async function deleteCategory(id, options) {
const response = await categories.deleteCategory(id, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.