@cpod/sdk - v0.2.7
    Preparing search index...

    Function deleteCategory

    • Delete a category by ID

      Parameters

      • categoryId: string

        The unique identifier of the category to delete

      Returns Promise<void>

      void

      401 - Not authenticated

      403 - Admin privileges required

      404 - Category not found

      import { deleteCategory } from "@cpod/sdk";

      await deleteCategory("category-123");
      console.log("Category deleted successfully");