> ## 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

> Delete the specified AWS Secrets Manager Sync.



## OpenAPI

````yaml DELETE /api/v1/secret-syncs/aws-secrets-manager/{syncId}
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/secret-syncs/aws-secrets-manager/{syncId}:
    delete:
      tags:
        - Secret Syncs
      description: Delete the specified AWS Secrets Manager Sync.
      operationId: deleteAwsSecretsManagerSecretSync
      parameters:
        - schema:
            type: string
            enum:
              - 'true'
              - 'false'
            default: 'false'
          in: query
          name: removeSecrets
          required: false
          description: >-
            Whether previously synced secrets should be removed prior to
            deletion.
        - schema:
            type: string
            format: uuid
          in: path
          name: syncId
          required: true
          description: The ID of the AWS Secrets Manager Sync to be deleted.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  secretSync:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      name:
                        type: string
                      description:
                        type: string
                        nullable: true
                      isAutoSyncEnabled:
                        type: boolean
                        default: true
                      version:
                        type: number
                        default: 1
                      projectId:
                        type: string
                      folderId:
                        type: string
                        format: uuid
                        nullable: true
                      connectionId:
                        type: string
                        format: uuid
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                      syncStatus:
                        type: string
                        nullable: true
                      lastSyncJobId:
                        type: string
                        nullable: true
                      lastSyncMessage:
                        type: string
                        nullable: true
                      lastSyncedAt:
                        type: string
                        format: date-time
                        nullable: true
                      importStatus:
                        type: string
                        nullable: true
                      lastImportJobId:
                        type: string
                        nullable: true
                      lastImportMessage:
                        type: string
                        nullable: true
                      lastImportedAt:
                        type: string
                        format: date-time
                        nullable: true
                      removeStatus:
                        type: string
                        nullable: true
                      lastRemoveJobId:
                        type: string
                        nullable: true
                      lastRemoveMessage:
                        type: string
                        nullable: true
                      lastRemovedAt:
                        type: string
                        format: date-time
                        nullable: true
                      syncOptions:
                        type: object
                        properties:
                          initialSyncBehavior:
                            type: string
                            enum:
                              - overwrite-destination
                              - import-prioritize-source
                              - import-prioritize-destination
                            description: >-
                              Specify how Infisical should resolve the initial
                              sync to the AWS Secrets Manager destination.
                          keySchema:
                            type: string
                            description: >-
                              Specify the format to use for structuring secret
                              keys in the AWS Secrets Manager destination.
                          disableSecretDeletion:
                            type: boolean
                            description: >-
                              Enable this flag to prevent removal of secrets
                              from the AWS Secrets Manager destination when
                              syncing.
                          keyId:
                            type: string
                            minLength: 1
                            maxLength: 256
                            description: >-
                              The AWS KMS key ID or alias to use when encrypting
                              parameters synced by Infisical.
                          tags:
                            type: array
                            items:
                              type: object
                              properties:
                                key:
                                  type: string
                                  minLength: 1
                                  maxLength: 128
                                value:
                                  type: string
                                  maxLength: 256
                              required:
                                - key
                                - value
                              additionalProperties: false
                            maxItems: 50
                            description: >-
                              Optional tags to add to secrets synced by
                              Infisical.
                          syncSecretMetadataAsTags:
                            type: boolean
                            description: >-
                              Whether Infisical secret metadata should be added
                              as tags to secrets synced by Infisical.
                        required:
                          - initialSyncBehavior
                        additionalProperties: false
                        description: Optional parameters to modify how secrets are synced.
                      connection:
                        type: object
                        properties:
                          app:
                            type: string
                            enum:
                              - aws
                          name:
                            type: string
                          id:
                            type: string
                            format: uuid
                        required:
                          - app
                          - name
                          - id
                        additionalProperties: false
                      environment:
                        type: object
                        properties:
                          slug:
                            type: string
                          name:
                            type: string
                          id:
                            type: string
                            format: uuid
                        required:
                          - slug
                          - name
                          - id
                        additionalProperties: false
                        nullable: true
                      folder:
                        type: object
                        properties:
                          id:
                            type: string
                          path:
                            type: string
                        required:
                          - id
                          - path
                        additionalProperties: false
                        nullable: true
                      destination:
                        type: string
                        enum:
                          - aws-secrets-manager
                      destinationConfig:
                        allOf:
                          - anyOf:
                              - type: object
                                properties:
                                  mappingBehavior:
                                    type: string
                                    enum:
                                      - one-to-one
                                    description: >-
                                      How secrets from Infisical should be
                                      mapped to AWS Secrets Manager; one-to-one
                                      or many-to-one.
                                required:
                                  - mappingBehavior
                                additionalProperties: false
                              - type: object
                                properties:
                                  mappingBehavior:
                                    type: string
                                    enum:
                                      - many-to-one
                                    description: >-
                                      How secrets from Infisical should be
                                      mapped to AWS Secrets Manager; one-to-one
                                      or many-to-one.
                                  secretName:
                                    type: string
                                    minLength: 1
                                    maxLength: 256
                                    description: >-
                                      The secret name in AWS Secrets Manager to
                                      sync to when using mapping behavior
                                      many-to-one.
                                required:
                                  - mappingBehavior
                                  - secretName
                                additionalProperties: false
                          - type: object
                            properties:
                              region:
                                type: string
                                enum:
                                  - us-east-1
                                  - us-east-2
                                  - us-west-1
                                  - us-west-2
                                  - us-gov-east-1
                                  - us-gov-west-1
                                  - af-south-1
                                  - ap-east-1
                                  - ap-south-1
                                  - ap-south-2
                                  - ap-northeast-1
                                  - ap-northeast-2
                                  - ap-northeast-3
                                  - ap-southeast-1
                                  - ap-southeast-2
                                  - ap-southeast-3
                                  - ap-southeast-4
                                  - ca-central-1
                                  - eu-central-1
                                  - eu-central-2
                                  - eu-west-1
                                  - eu-west-2
                                  - eu-west-3
                                  - eu-south-1
                                  - eu-south-2
                                  - eu-north-1
                                  - me-south-1
                                  - me-central-1
                                  - sa-east-1
                                description: The AWS region to sync secrets to.
                            required:
                              - region
                    required:
                      - id
                      - name
                      - projectId
                      - connectionId
                      - createdAt
                      - updatedAt
                      - syncOptions
                      - connection
                      - environment
                      - folder
                      - destination
                      - destinationConfig
                    additionalProperties: false
                    title: AWS Secrets Manager
                required:
                  - secretSync
                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

````