Amazon Verified Permissions DeletePolicy API

The DeletePolicy API from Amazon Verified Permissions — 1 operation(s) for deletepolicy.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 1

POST /#DeletePolicy Delete Policy #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-verified-permissions:amazon-verified-permissions-deletepolicy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-verified-permissions-deletepolicy-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Verified Permissions Deletepolicy API
  version: '2021-12-01'
  description: Generated from AWS's published Smithy model for Amazon Verified Permissions. 1 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://verifiedpermissions.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#DeletePolicy:
    post:
      operationId: DeletePolicy
      summary: Delete Policy
      description: Deletes the specified policy from the policy store. This operation is idempotent; if you specify a policy
        that doesn't exist, the request response returns a successful HTTP 200 status code.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/DeletePolicyOutput'
              example: {}
        '409':
          description: ConflictException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - VerifiedPermissions.DeletePolicy
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/DeletePolicyInput'
            example:
              policyId: 9wYxMpljbbZQb5fcZHyJhY
              policyStoreId: C7v5xMplfFH3i3e4Jrzb1a
      tags:
      - Deletepolicy
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: verifiedpermissions
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ConflictException:
      type: object
      properties:
        message:
          type: string
        resources:
          type: array
          items:
            $ref: '#/components/schemas/ResourceConflict'
          description: The list of resources referenced with this failed request.
      required:
      - message
      - resources
    DeletePolicyInput:
      type: object
      properties:
        policyStoreId:
          type: string
          description: 'Specifies the ID of the policy store that contains the policy that you want to delete. To specify
            a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
            ID: PSEXAMPLEabcdefg111111 Alias name: policy-store-alias/example-policy-store To view aliases, use ListPolicyStoreAliases.'
        policyId:
          type: string
          description: 'Specifies the ID of the policy that you want to delete. You can use the policy name in place of the
            policy ID. When using a name, prefix it with name/. For example: ID: SPEXAMPLEabcdefg111111 Name: name/example-policy'
      required:
      - policyStoreId
      - policyId
    DeletePolicyOutput:
      type: object
      properties: {}
    InternalServerException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ResourceConflict:
      type: object
      properties:
        resourceId:
          type: string
          description: The unique identifier of the resource involved in a conflict.
        resourceType:
          type: string
          enum:
          - IDENTITY_SOURCE
          - POLICY_STORE
          - POLICY
          - POLICY_TEMPLATE
          - SCHEMA
          - POLICY_STORE_ALIAS
          description: The type of the resource involved in a conflict.
      required:
      - resourceId
      - resourceType
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
        resourceId:
          type: string
          description: The unique ID of the resource referenced in the failed request.
        resourceType:
          type: string
          enum:
          - IDENTITY_SOURCE
          - POLICY_STORE
          - POLICY
          - POLICY_TEMPLATE
          - SCHEMA
          - POLICY_STORE_ALIAS
          description: The resource type of the resource referenced in the failed request.
      required:
      - message
      - resourceId
      - resourceType
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
        serviceCode:
          type: string
          description: The code for the Amazon Web Services service that owns the quota.
        quotaCode:
          type: string
          description: The quota code recognized by the Amazon Web Services Service Quotas service.
      required:
      - message
    ValidationException:
      type: object
      properties:
        message:
          type: string
        fieldList:
          type: array
          items:
            $ref: '#/components/schemas/ValidationExceptionField'
          description: The list of fields that aren't valid.
      required:
      - message
    ValidationExceptionField:
      type: object
      properties:
        path:
          type: string
          description: The path to the specific element that Verified Permissions found to be not valid.
        message:
          type: string
          description: Describes the policy validation error.
      required:
      - path
      - message
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/verifiedpermissions/service/2021-12-01/verifiedpermissions-2021-12-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)