Skip to content

`DELETE /v1/orgs/{org}/policies/{policy_id}`.

DELETE
/v1/orgs/{org}/policies/{policy_id}
curl --request DELETE \
--url https://api.updawg.net/v1/orgs/example/policies/example

A soft delete. The policy stops evaluating and stops appearing; its versions stay, so every proposal it ever produced keeps its reason. See migration 29.

org
required
string

Organization slug.

policy_id
required
string

The pol_… id.

Deleted, softly. A hard delete would destroy the answer to why an existing proposal exists.

No session.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Not permitted for this role.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

No such policy here.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}