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

# Delete a routing policy

> Deletes the policy in the scope of your credential (the organization's with a management key, your personal one otherwise). API keys that used it as their `default_policy` lose the binding; requests naming it as `@edenai/{name}` are refused from then on, or fall through to the organization's policy of that name when a personal one shadowed it. With a management key, the organization's policies are managed (`manage:read` to read, `manage:write` to write). With your own API key or session token, your personal policies are managed, and the organization's can be read.



## OpenAPI

````yaml https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json delete /v3/manage/routing-policies/{name}/
openapi: 3.0.3
info:
  title: Organization Management
  version: '2.0'
  description: Your project description
servers:
  - url: https://api.edenai.run
security: []
paths:
  /v3/manage/routing-policies/{name}/:
    delete:
      tags:
        - Routing Policies
      summary: Delete a routing policy
      description: >-
        Deletes the policy in the scope of your credential (the organization's
        with a management key, your personal one otherwise). API keys that used
        it as their `default_policy` lose the binding; requests naming it as
        `@edenai/{name}` are refused from then on, or fall through to the
        organization's policy of that name when a personal one shadowed it. With
        a management key, the organization's policies are managed (`manage:read`
        to read, `manage:write` to write). With your own API key or session
        token, your personal policies are managed, and the organization's can be
        read.
      operationId: manage_routing_policies_destroy
      parameters:
        - in: path
          name: name
          schema:
            type: string
          description: The policy's handle, as called with `@edenai/{name}`.
          required: true
        - in: query
          name: scope
          schema:
            type: string
            enum:
              - organization
              - user
          description: >-
            Optional, and only ever the scope your credential writes:
            `organization` with a management key, `user` with your own API key
            or session token. Naming the other one is refused (403) rather than
            silently written elsewhere.
      responses:
        '204':
          description: No response body
      security:
        - ManagementKeyOrUserAuth: []
components:
  securitySchemes:
    ManagementKeyOrUserAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        A management key (`mgmt-eden...`) to manage the organization's routing
        policies, or your own API key (`sk-eden...`) or session token to manage
        your personal ones, sent as `Authorization: Bearer <key>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.