---
title: "Delete ExportDestination"
method: DELETE
path: "/organizations/{orgId}/dataexports/destinations/{id}"
tags: ["ExportDestination"]
---

# Delete ExportDestination

`DELETE /organizations/{orgId}/dataexports/destinations/{id}`

Delete an Export Destination for the given UUID.

**NOTE:** If you attempt to delete an Export Destination that is currently linked to a Data Export Schedule, an error message is returned and you won't be able to delete the Destination.

## Path parameters

- `orgId` string, required
- `id` string, required

## Response `200`

Returns the deleted Export Destination

- union
  - ExportDestinationS3Response
    - `bucketName` string — Name of the S3 bucket for the Export Destination.
    - `prefix` string — Location in specified S3 bucket for the Export Destination. If no `prefix` is specified, then the root of the bucket is used.
    - `iamRoleArn` string — The specified IAM role ARN with PutObject permission for the specified `bucketName`, which allows the service to upload Data Exports to your S3 bucket.
    - `partitionOrder` 'TYPE_FIRST' | 'TIME_FIRST' — Output partitioning
    - `name` string — The name of the data Export Destination.
    - `code` string — The code of the data Export Destination.
    - `destinationType` 'S3' | 'GCS' — The type of destination
    - `dtCreated` string, date-time — The DateTime when the Export Destination was created.
    - `dtLastModified` string, date-time — The DateTime when the Export Destination was last modified.
    - `createdBy` string — The id of the user who created the Export Destination.
    - `lastModifiedBy` string — The id of the user who last modified the Export Destination.
    - `id` string, required — The UUID of the entity.
    - `version` integer — The version number: - **Create:** On initial Create to insert a new entity, the version is set at 1 in the response. - **Update:** On successful Update, the version is incremented by 1 in the response.
  - ExportDestinationGoogleCloudStorageResponse
    - `bucketName` string — The bucket name.
    - `prefix` string — The prefix.
    - `projectNumber` string — The export destination GCP projectNumber.
    - `poolId` string — The export destination Web Identity Federation poolId.
    - `providerId` string — The export destination Web Identity Federation identity providerId.
    - `serviceAccountEmail` string — The export destination service account email.
    - `partitionOrder` 'TYPE_FIRST' | 'TIME_FIRST' — Output partitioning
    - `name` string — The name of the data Export Destination.
    - `code` string — The code of the data Export Destination.
    - `destinationType` 'S3' | 'GCS' — The type of destination
    - `dtCreated` string, date-time — The DateTime when the Export Destination was created.
    - `dtLastModified` string, date-time — The DateTime when the Export Destination was last modified.
    - `createdBy` string — The id of the user who created the Export Destination.
    - `lastModifiedBy` string — The id of the user who last modified the Export Destination.
    - `id` string, required — The UUID of the entity.
    - `version` integer — The version number: - **Create:** On initial Create to insert a new entity, the version is set at 1 in the response. - **Update:** On successful Update, the version is incremented by 1 in the response.

## Other responses

- `4XX` — Error message
- `5XX` — Error message

## Changes

- **2025-08-01** `9f9e5f3dbde7` — 3 info
  - added `#/components/schemas/ExportDestinationS3Response, #/components/schemas/ExportDestinationGoogleCloudStorageResponse` to the response body `anyOf` list for the response status `200`
  - added response discriminator for the response status `200`
  - removed `#/components/schemas/ExportDestinationS3Response` from the response body `oneOf` list for the response status `200`
- **2025-02-26** `6c3e1a3cfb8f` — 1 breaking, 6 warning, 1 info
  - the response's body type/format changed from `object`/`` to ``/`` for status `200`
  - removed the optional property `code` from the response with the `200` status
  - removed the optional property `createdBy` from the response with the `200` status
  - removed the optional property `dtCreated` from the response with the `200` status
  - …4 more
- **2025-02-04** `9433593378b5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/m3ter-com/apis/m3ter-api/changes/organizations/:orgId/dataexports/destinations/:id/delete.md)

---

[API](https://skmtc.dev/m3ter-com/apis/m3ter-api.md) · [All operations](https://skmtc.dev/m3ter-com/apis/m3ter-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/m3ter-com/m3ter-api/revisions/ac93d1a9e6d9/schema)
