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

# Delete Permissions

> Remove all permissions for a user, group, or app instance on a collection.

This operation is idempotent: removing permissions for an entity that currently has none still returns `204`.

<Note>
If all entities' permissions are removed, then only users with the **Manage AppDB** grant will still have access.
</Note>




## OpenAPI

````yaml /openapi/product/appdb.yaml delete /api/datastores/v1/collections/{collectionId}/permission/{entity}/{entityId}
openapi: 3.0.0
info:
  title: App DB API
  version: v1
  description: |
    The App DB API allows developers to interact with AppDB, a NoSQL database 
    for storing arbitrary JSON documents. This API supports CRUD operations, 
    querying, and aggregation, enabling developers to manage data efficiently 
    within their Domo applications.
servers:
  - url: https://{instance}.domo.com
    description: Domo Instance
    variables:
      instance:
        default: api
        description: Your specific Domo instance name (e.g., mycompany)
security:
  - developerToken: []
tags:
  - name: Documents
    description: Manage individual documents in an AppDB collection.
  - name: Collections
    description: Manage AppDB collections (schema, permissions).
  - name: App DB API (Product)
    description: Manage documents and collections in AppDB.
paths:
  /api/datastores/v1/collections/{collectionId}/permission/{entity}/{entityId}:
    delete:
      tags:
        - App DB API (Product)
      summary: Delete Permissions
      description: >
        Remove all permissions for a user, group, or app instance on a
        collection.


        This operation is idempotent: removing permissions for an entity that
        currently has none still returns `204`.


        <Note>

        If all entities' permissions are removed, then only users with the
        **Manage AppDB** grant will still have access.

        </Note>
      parameters:
        - name: collectionId
          in: path
          required: true
          schema:
            type: string
          description: The ID of the collection.
        - $ref: '#/components/parameters/EntityType'
        - $ref: '#/components/parameters/EntityId'
      responses:
        '204':
          description: Permissions removed successfully. No response body is returned.
        '403':
          description: >-
            Forbidden. The caller does not have the `share` permission on this
            collection.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                status: 403
                toe: 4BTZ5Z37R0-WR4VI-YS9Y4
        '404':
          $ref: '#/components/responses/CollectionNotFoundDirect'
components:
  parameters:
    EntityType:
      name: entity
      in: path
      required: true
      description: The type of entity the permissions apply to.
      schema:
        type: string
        enum:
          - USER
          - GROUP
          - RYUU_APP
    EntityId:
      name: entityId
      in: path
      required: true
      description: >-
        The ID of the entity the permissions apply to. For a **USER** or
        **GROUP**, this is the numeric ID (for example, `870010733`). For a
        **RYUU_APP**, this is the app instance's UUID — the same value as the
        app's datastore UUID, which also appears as the subdomain of the app's
        origin (e.g., `https://<instance-uuid>.domoapps.domo.com`).
      schema:
        type: string
      examples:
        userOrGroup:
          summary: User or group (numeric ID)
          value: '870010733'
        app:
          summary: App instance (UUID)
          value: fcd8baba-9524-4fb5-b94b-b3d3b588e740
  schemas:
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: A human-readable error message.
        status:
          type: integer
          description: HTTP status code.
        statusReason:
          type: string
          description: HTTP status reason phrase.
        toe:
          type: string
          description: Trace identifier for support; stands for Thread of Execution.
  responses:
    CollectionNotFoundDirect:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            message: No collection with id a3f7d891-bc24-4e56-9a12-c7e3b0f845d2 found
            status: 404
            statusReason: Not Found
            toe: UO3SB982DA-RL9G8-GO8DF
  securitySchemes:
    developerToken:
      type: apiKey
      in: header
      name: X-DOMO-Developer-Token
      description: Domo Developer Token for authentication.

````