---
title: "DELETE /v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}"
method: DELETE
path: "/v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}"
tags: ["organizations"]
---

# DELETE /v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}

`DELETE /v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}`

## Request

- Base URL: `https://orgpolicy.googleapis.com`
- URL: `https://orgpolicy.googleapis.com/v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/organizationpolicy`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/organizationpolicy`

Deletes a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist.

## Path parameters

- `organizationsId` string, required
- `customConstraintsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Response `200`

Successful response

- GoogleProtobufEmpty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

## Changes

- **2026-11-23** `373057a726d5`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/organizationpolicy` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/organizationpolicy` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/orgpolicy/changes/v2/organizations/:organizationsId/customConstraints/:customConstraintsId/delete.md)

---

[API](https://skmtc.dev/google/apis/orgpolicy.md) - [All operations](https://skmtc.dev/google/apis/orgpolicy/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/orgpolicy/revisions/373057a726d5?raw)
