> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enad.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk Remove Products from Categories

> Removes multiple products from multiple categories simultaneously in a single bulk operation. Supports up to 50 category-product relationship items per request, automatically publishing update events for affected products.



## OpenAPI

````yaml /swagger/management-api.json delete /api/v1/{team_slug}/{app_slug}/categories/products/bulk
openapi: 3.0.0
info:
  contact:
    email: support@enad.io
    name: API support
    url: http://enad.io/support
  description: This is the documentation for Public API v1
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: http://enad.io/terms/
  title: Public API
  version: '1.0'
servers:
  - url: //api.enad.io
security: []
paths:
  /api/v1/{team_slug}/{app_slug}/categories/products/bulk:
    delete:
      tags:
        - Categories
        - Bulk
      summary: Bulk Remove Products from Categories
      description: >-
        Removes multiple products from multiple categories simultaneously in a
        single bulk operation. Supports up to 50 category-product relationship
        items per request, automatically publishing update events for affected
        products.
      parameters:
        - description: Team slug
          in: path
          name: team_slug
          required: true
          schema:
            type: string
        - description: App slug
          in: path
          name: app_slug
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/internal_pkg_webserver_v1.BulkModifyCategoryProductsPayload
        description: Product and category relationships to delete
        required: true
      responses:
        '200':
          description: Products removed from categories successfully
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/internal_pkg_webserver_v1.OkResponseBulkRemoveProductsFromCategories
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_pkg_webserver_v1.ErrorMessage'
        '401':
          description: Unauthorized access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_pkg_webserver_v1.ErrorMessage'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_pkg_webserver_v1.ErrorMessage'
      security:
        - BearerAuth: []
components:
  schemas:
    internal_pkg_webserver_v1.BulkModifyCategoryProductsPayload:
      properties:
        items:
          items:
            $ref: >-
              #/components/schemas/internal_pkg_webserver_v1.BulkCategoryProductRelationshipItem
          maxItems: 50
          type: array
      required:
        - items
      type: object
    internal_pkg_webserver_v1.OkResponseBulkRemoveProductsFromCategories:
      properties:
        data:
          $ref: >-
            #/components/schemas/internal_pkg_webserver_v1.BulkRemoveProductsFromCategoriesResponse
        details:
          description: >-
            Additional contextual information about the response. Used to
            provide supplementary details beyond the main data payload, such as
            validation warnings or processing notes
          items:
            type: string
          type: array
        success:
          type: boolean
      type: object
    internal_pkg_webserver_v1.ErrorMessage:
      properties:
        details:
          items:
            type: string
          type: array
        message:
          type: string
        success:
          type: boolean
      type: object
    internal_pkg_webserver_v1.BulkCategoryProductRelationshipItem:
      properties:
        category_id:
          type: string
        products:
          items:
            $ref: >-
              #/components/schemas/internal_pkg_webserver_v1.BulkCategoryProductRef
          minItems: 1
          type: array
      required:
        - category_id
        - products
      type: object
    internal_pkg_webserver_v1.BulkRemoveProductsFromCategoriesResponse:
      properties:
        failed:
          items:
            $ref: >-
              #/components/schemas/internal_pkg_webserver_v1.BulkCategoryProductFailedOp
          type: array
        successful:
          items:
            $ref: >-
              #/components/schemas/internal_pkg_webserver_v1.BulkCategoryProductRelationshipItem
          type: array
      type: object
    internal_pkg_webserver_v1.BulkCategoryProductRef:
      properties:
        is_main_category:
          type: boolean
        order:
          type: integer
        product_id:
          type: string
      required:
        - product_id
      type: object
    internal_pkg_webserver_v1.BulkCategoryProductFailedOp:
      properties:
        category_id:
          type: string
        product_id:
          type: string
        reason:
          type: string
      type: object

````