APIs.io Engineering Platform AWS Identity and Access Management — #Action=DeletePolicy

APIs.io Engineering Platform AWS Identity and Access Management — #Action=DeletePolicy. 2 operations. Lead operation: #Action=DeletePolicy. Self-contained Naftiko capability covering one Engineering Platform business surface.

Run with Naftiko Engineering Platform#Action=DeletePolicy

What You Can Do

GET
Getdeletepolicy

Deletes the specified managed policy.

Before you can delete a managed policy, you must first detach the policy from all users, groups, and roles that it is attached to. In addition, you must delete all the policy's versions. The f

/v1/action-deletepolicy
POST
Postdeletepolicy

Deletes the specified managed policy.

Before you can delete a managed policy, you must first detach the policy from all users, groups, and roles that it is attached to. In addition, you must delete all the policy's versions. The f

/v1/action-deletepolicy

MCP Tools

p-deletes-specified-managed-policy-p

Deletes the specified managed policy.

Before you can delete a managed policy, you must first detach the policy from all users, groups, and roles that it is attached to. In addition, you must delete all the policy's versions. The f

read-only idempotent
p-deletes-specified-managed-policy-p-2

Deletes the specified managed policy.

Before you can delete a managed policy, you must first detach the policy from all users, groups, and roles that it is attached to. In addition, you must delete all the policy's versions. The f

Capability Spec

aws-iam-action-deletepolicy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: 'APIs.io Engineering Platform AWS Identity and Access Management — #Action=DeletePolicy'
  description: 'APIs.io Engineering Platform AWS Identity and Access Management — #Action=DeletePolicy. 2 operations. Lead
    operation: #Action=DeletePolicy. Self-contained Naftiko capability covering one Engineering Platform business surface.'
  tags:
  - Engineering Platform
  - '#Action=DeletePolicy'
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ENGINEERING_PLATFORM_API_KEY: ENGINEERING_PLATFORM_API_KEY
capability:
  consumes:
  - type: http
    namespace: aws-iam-action-deletepolicy
    baseUri: https://iam.amazonaws.com
    description: 'APIs.io Engineering Platform AWS Identity and Access Management — #Action=DeletePolicy business capability.
      Self-contained, no shared references.'
    resources:
    - name: '#Action=DeletePolicy'
      path: /#Action=DeletePolicy
      operations:
      - name: getdeletepolicy
        method: GET
        description: <p>Deletes the specified managed policy.</p> <p>Before you can delete a managed policy, you must first
          detach the policy from all users, groups, and roles that it is attached to. In addition, you must delete all the
          policy's versions. The f
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: PolicyArn
          in: query
          type: string
          description: <p>The Amazon Resource Name (ARN) of the IAM policy you want to delete.</p> <p>For more information
            about ARNs, see <a href="https://docs.aws.amazon.com/general
          required: true
        - name: Action
          in: query
          type: string
          required: true
        - name: Version
          in: query
          type: string
          required: true
      - name: postdeletepolicy
        method: POST
        description: <p>Deletes the specified managed policy.</p> <p>Before you can delete a managed policy, you must first
          detach the policy from all users, groups, and roles that it is attached to. In addition, you must delete all the
          policy's versions. The f
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Action
          in: query
          type: string
          required: true
        - name: Version
          in: query
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.ENGINEERING_PLATFORM_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: aws-iam-action-deletepolicy-rest
    port: 8080
    description: 'REST adapter for APIs.io Engineering Platform AWS Identity and Access Management — #Action=DeletePolicy.
      One Spectral-compliant resource per consumed operation, prefixed with /v1.'
    resources:
    - path: /v1/action-deletepolicy
      name: action-deletepolicy
      description: 'REST surface for #Action=DeletePolicy.'
      operations:
      - method: GET
        name: getdeletepolicy
        description: <p>Deletes the specified managed policy.</p> <p>Before you can delete a managed policy, you must first
          detach the policy from all users, groups, and roles that it is attached to. In addition, you must delete all the
          policy's versions. The f
        call: aws-iam-action-deletepolicy.getdeletepolicy
        with:
          PolicyArn: rest.PolicyArn
          Action: rest.Action
          Version: rest.Version
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postdeletepolicy
        description: <p>Deletes the specified managed policy.</p> <p>Before you can delete a managed policy, you must first
          detach the policy from all users, groups, and roles that it is attached to. In addition, you must delete all the
          policy's versions. The f
        call: aws-iam-action-deletepolicy.postdeletepolicy
        with:
          Action: rest.Action
          Version: rest.Version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: aws-iam-action-deletepolicy-mcp
    port: 9090
    transport: http
    description: 'MCP adapter for APIs.io Engineering Platform AWS Identity and Access Management — #Action=DeletePolicy.
      One tool per consumed operation, routed inline through this capability''s consumes block.'
    tools:
    - name: p-deletes-specified-managed-policy-p
      description: <p>Deletes the specified managed policy.</p> <p>Before you can delete a managed policy, you must first
        detach the policy from all users, groups, and roles that it is attached to. In addition, you must delete all the policy's
        versions. The f
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: aws-iam-action-deletepolicy.getdeletepolicy
      with:
        PolicyArn: tools.PolicyArn
        Action: tools.Action
        Version: tools.Version
      outputParameters:
      - type: object
        mapping: $.
    - name: p-deletes-specified-managed-policy-p-2
      description: <p>Deletes the specified managed policy.</p> <p>Before you can delete a managed policy, you must first
        detach the policy from all users, groups, and roles that it is attached to. In addition, you must delete all the policy's
        versions. The f
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: aws-iam-action-deletepolicy.postdeletepolicy
      with:
        Action: tools.Action
        Version: tools.Version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.