---
title: "DELETE /api/v1/secret-syncs/gcp-secret-manager/{syncId}"
method: DELETE
path: "/api/v1/secret-syncs/gcp-secret-manager/{syncId}"
tags: ["Secret Syncs"]
---

# DELETE /api/v1/secret-syncs/gcp-secret-manager/{syncId}

`DELETE /api/v1/secret-syncs/gcp-secret-manager/{syncId}`

Delete the specified GCP Secret Manager Sync.

## Path parameters

- `syncId` string, uuid, required

## Query parameters

- `removeSecrets` 'true' | 'false'

## Response `200`

Default Response

- object
  - `secretSync` object, required
    - `id` string, uuid, required
    - `name` string, required
    - `description` string, nullable
    - `isAutoSyncEnabled` boolean
    - `version` number
    - `projectId` string, required
    - `folderId` string, uuid, nullable
    - `connectionId` string, uuid, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `syncStatus` string, nullable
    - `lastSyncJobId` string, nullable
    - `lastSyncMessage` string, nullable
    - `lastSyncedAt` string, date-time, nullable
    - `importStatus` string, nullable
    - `lastImportJobId` string, nullable
    - `lastImportMessage` string, nullable
    - `lastImportedAt` string, date-time, nullable
    - `removeStatus` string, nullable
    - `lastRemoveJobId` string, nullable
    - `lastRemoveMessage` string, nullable
    - `lastRemovedAt` string, date-time, nullable
    - `syncOptions` object, required — Optional parameters to modify how secrets are synced.
      - `initialSyncBehavior` 'overwrite-destination' | 'import-prioritize-source' | 'import-prioritize-destination', required — Specify how Infisical should resolve the initial sync to the GCP Secret Manager destination.
      - `keySchema` string — Specify the format to use for structuring secret keys in the GCP Secret Manager destination.
      - `disableSecretDeletion` boolean — Enable this flag to prevent removal of secrets from the GCP Secret Manager destination when syncing.
    - `connection` object, required
      - `app` 'gcp', required
      - `name` string, required
      - `id` string, uuid, required
    - `environment` object, nullable, required
      - `slug` string, required
      - `name` string, required
      - `id` string, uuid, required
    - `folder` object, nullable, required
      - `id` string, required
      - `path` string, required
    - `destination` 'gcp-secret-manager', required
    - `destinationConfig` union, required
      - object
        - `scope` 'global', required — The Google project scope that secrets should be synced to.
        - `projectId` string, required — The ID of the Google project secrets should be synced to.
        - `locationId` 'asia-southeast3' | 'asia-south2' | 'asia-east2' | 'asia-southeast2' | 'australia-southeast2' | 'asia-south1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-southeast1' | 'australia-southeast1' | 'asia-east1' | 'asia-northeast1' | 'europe-west1' | 'europe-west10' | 'europe-north1' | 'europe-north2' | 'europe-west3' | 'europe-west2' | 'europe-southwest1' | 'europe-west8' | 'europe-west4' | 'europe-west12' | 'europe-west9' | 'europe-central2' | 'europe-west6' | 'us-central1' | 'us-west4' | 'us-west2' | 'northamerica-south1' | 'northamerica-northeast1' | 'us-east4' | 'us-central2' | 'us-west1' | 'us-west3' | 'us-east1' | 'northamerica-northeast2' | 'us-east5' | 'us-south1' | 'us-west8' | 'southamerica-east1' | 'southamerica-west1' | 'me-central2' | 'me-central1' | 'me-west1' | 'africa-south1' — The ID of the Google project location secrets should be synced to (ie "us-west4").
        - `userReplicaLocationIds` string[] — The Google project locations to replicate secrets to under user-managed replication (global scope, ie ["us-west4"]).
      - object
        - `scope` 'region', required — The Google project scope that secrets should be synced to.
        - `projectId` string, required — The ID of the Google project secrets should be synced to.
        - `locationId` 'asia-southeast3' | 'asia-south2' | 'asia-east2' | 'asia-southeast2' | 'australia-southeast2' | 'asia-south1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-southeast1' | 'australia-southeast1' | 'asia-east1' | 'asia-northeast1' | 'europe-west1' | 'europe-west10' | 'europe-north1' | 'europe-north2' | 'europe-west3' | 'europe-west2' | 'europe-southwest1' | 'europe-west8' | 'europe-west4' | 'europe-west12' | 'europe-west9' | 'europe-central2' | 'europe-west6' | 'us-central1' | 'us-west4' | 'us-west2' | 'northamerica-south1' | 'northamerica-northeast1' | 'us-east4' | 'us-central2' | 'us-west1' | 'us-west3' | 'us-east1' | 'northamerica-northeast2' | 'us-east5' | 'us-south1' | 'us-west8' | 'southamerica-east1' | 'southamerica-west1' | 'me-central2' | 'me-central1' | 'me-west1' | 'africa-south1', required — The ID of the Google project location secrets should be synced to (ie "us-west4").

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/infisical/apis/infisical-api.md) · [All operations](https://skmtc.net/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infisical/infisical-api/versions/f10a4f8c1d41/schema)
