---
title: "POST /v1/{+name}:bulkDelete"
method: POST
path: "/v1/{+name}:bulkDelete"
tags: ["projects"]
---

# POST /v1/{+name}:bulkDelete

`POST /v1/{+name}:bulkDelete`

Bulk deletes the FHIR resources from the given FHIR store. This method returns an Operation that can be used to track the progress of the deletion by calling GetOperation. The success and secondary_success counters correspond to the deleted current version and historical versions, respectively.

## Path parameters

- `name` string, required

## Request body

- BulkDeleteResourcesRequest — Request to bulk delete FHIR resources.
  - `until` string — Optional. If provided, only resources updated before or atthis time are deleted. The time uses the format YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example, `2015-02-07T13:28:17.239+02:00` or `2017-01-01T00:00:00Z`. The time must be specified to the second and include a time zone.
  - `gcsDestination` GoogleCloudHealthcareV1FhirGcsDestination — The configuration for exporting to Cloud Storage.
    - `uriPrefix` string — URI for a Cloud Storage directory where result files should be written, in the format of `gs://{bucket-id}/{path/to/destination/dir}`. If there is no trailing slash, the service appends one when composing the object path. The user is responsible for creating the Cloud Storage bucket referenced in `uri_prefix`.
  - `validateOnly` boolean — Optional. If set to true, the request will only perform a dry run. By default (once the behavior change is fully rolled out), this will default to true. During the transition period, the default depends on the Mendel flag status for the project.
  - `versionConfig` 'VERSION_CONFIG_UNSPECIFIED' | 'ALL' | 'CURRENT_ONLY' | 'HISTORY_ONLY' — Optional. Specifies which version of the resources to delete.
  - `type` string — Optional. String of comma-delimited FHIR resource types. If provided, only resources of the specified resource type(s) will be deleted.

## Response `200`

Successful response

---

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