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

# Delete



## OpenAPI

````yaml DELETE /api/v1/cert-manager/certificate-policies/{id}
openapi: 3.0.3
info:
  title: Infisical API
  description: List of all available APIs that can be consumed
  version: 0.0.1
servers:
  - url: https://us.infisical.com
    description: Production server (US)
  - url: https://eu.infisical.com
    description: Production server (EU)
  - url: http://localhost:8080
    description: Local server
security: []
paths:
  /api/v1/cert-manager/certificate-policies/{id}:
    delete:
      tags:
        - PKI Certificate Policies
      operationId: deleteCertificatePolicy
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  certificatePolicy:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      name:
                        type: string
                        minLength: 1
                        maxLength: 255
                        pattern: ^[a-zA-Z0-9-_]+$
                      description:
                        type: string
                        maxLength: 1000
                        nullable: true
                      subject:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - common_name
                                - organization
                                - country
                                - state
                                - locality
                                - organizational_unit
                            allowed:
                              type: array
                              items:
                                type: string
                                minLength: 1
                            required:
                              type: array
                              items:
                                type: string
                                minLength: 1
                            denied:
                              type: array
                              items:
                                type: string
                                minLength: 1
                          required:
                            - type
                          additionalProperties: false
                      sans:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - dns_name
                                - ip_address
                                - email
                                - uri
                            allowed:
                              type: array
                              items:
                                type: string
                                minLength: 1
                            required:
                              type: array
                              items:
                                type: string
                                minLength: 1
                            denied:
                              type: array
                              items:
                                type: string
                                minLength: 1
                          required:
                            - type
                          additionalProperties: false
                      keyUsages:
                        type: object
                        properties:
                          allowed:
                            type: array
                            items:
                              type: string
                              enum:
                                - digital_signature
                                - key_encipherment
                                - non_repudiation
                                - data_encipherment
                                - key_agreement
                                - key_cert_sign
                                - crl_sign
                                - encipher_only
                                - decipher_only
                          required:
                            type: array
                            items:
                              type: string
                              enum:
                                - digital_signature
                                - key_encipherment
                                - non_repudiation
                                - data_encipherment
                                - key_agreement
                                - key_cert_sign
                                - crl_sign
                                - encipher_only
                                - decipher_only
                          denied:
                            type: array
                            items:
                              type: string
                              enum:
                                - digital_signature
                                - key_encipherment
                                - non_repudiation
                                - data_encipherment
                                - key_agreement
                                - key_cert_sign
                                - crl_sign
                                - encipher_only
                                - decipher_only
                        additionalProperties: false
                      extendedKeyUsages:
                        type: object
                        properties:
                          allowed:
                            type: array
                            items:
                              type: string
                              enum:
                                - client_auth
                                - server_auth
                                - code_signing
                                - email_protection
                                - ocsp_signing
                                - time_stamping
                          required:
                            type: array
                            items:
                              type: string
                              enum:
                                - client_auth
                                - server_auth
                                - code_signing
                                - email_protection
                                - ocsp_signing
                                - time_stamping
                          denied:
                            type: array
                            items:
                              type: string
                              enum:
                                - client_auth
                                - server_auth
                                - code_signing
                                - email_protection
                                - ocsp_signing
                                - time_stamping
                        additionalProperties: false
                      algorithms:
                        type: object
                        properties:
                          signature:
                            type: array
                            items:
                              type: string
                              minLength: 1
                            minItems: 1
                          keyAlgorithm:
                            type: array
                            items:
                              type: string
                              minLength: 1
                            minItems: 1
                        additionalProperties: false
                      validity:
                        type: object
                        properties:
                          max:
                            type: string
                            pattern: ^\d+[dhmy]$
                        additionalProperties: false
                      basicConstraints:
                        type: object
                        properties:
                          isCA:
                            type: string
                            enum:
                              - allowed
                              - required
                              - denied
                          maxPathLength:
                            type: integer
                            minimum: -1
                        additionalProperties: false
                        nullable: true
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                    required:
                      - id
                      - name
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                required:
                  - certificatePolicy
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 400
                  message:
                    type: string
                  error:
                    type: string
                  details: {}
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                  details: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 422
                  message: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 500
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false

````