- [HTTP request](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/projects.locations.catalogs.attributesConfig/batchRemoveCatalogAttributes.md.txt#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/projects.locations.catalogs.attributesConfig/batchRemoveCatalogAttributes.md.txt#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/projects.locations.catalogs.attributesConfig/batchRemoveCatalogAttributes.md.txt#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/projects.locations.catalogs.attributesConfig/batchRemoveCatalogAttributes.md.txt#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/projects.locations.catalogs.attributesConfig/batchRemoveCatalogAttributes.md.txt#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/projects.locations.catalogs.attributesConfig/batchRemoveCatalogAttributes.md.txt#body.BatchRemoveCatalogAttributesResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/projects.locations.catalogs.attributesConfig/batchRemoveCatalogAttributes.md.txt#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/projects.locations.catalogs.attributesConfig/batchRemoveCatalogAttributes.md.txt#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/projects.locations.catalogs.attributesConfig/batchRemoveCatalogAttributes.md.txt#try-it)

Removes all specified `CatalogAttribute`s from the `AttributesConfig`.

### HTTP request

`POST https://retail.googleapis.com/v2alpha/{attributesConfig=projects/*/locations/*/catalogs/*/attributesConfig}:batchRemoveCatalogAttributes`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `attributesConfig` | `string` Required. The attributes config resource shared by all catalog attributes being deleted. Format: `projects/{projectNumber}/locations/{locationId}/catalogs/{catalogId}/attributesConfig` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "attributeKeys": [ string ] } ``` |

| Fields ||
|---|---|
| `attributeKeys[]` | `string` Required. The attribute name keys of the `CatalogAttribute`s to delete. A maximum of 1000 catalog attributes can be deleted in a batch. |

### Response body

Response of the `CatalogService.BatchRemoveCatalogAttributes`.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "deletedCatalogAttributes": [ string ], "resetCatalogAttributes": [ string ] } ``` |

| Fields ||
|---|---|
| `deletedCatalogAttributes[]` | `string` Catalog attributes that were deleted. Only pre-loaded `catalog attributes` that are neither `in use` by products nor predefined can be deleted. |
| `resetCatalogAttributes[]` | `string` Catalog attributes that were reset. `Catalog attributes` that are either `in use` by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `attributesConfig` resource:

- `retail.attributesConfigs.batchRemoveCatalogAttributes`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).