Search + K

Command Palette

Search for a command to run...

Sign In

Closing down - Delete a tag protection state for a repository

Deprecated
DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}
Copy endpoint
https://api.github.com

[!WARNING] Closing down notice: This operation is closing down and will be removed after August 30, 2024. Use the "Repository Rulesets" endpoint instead.

This deletes a tag protection state for a repository. This endpoint is only available to repository administrators.

Parameters

path Path Parameters

Name Type
owner required

The account owner of the repository. The name is not case sensitive.

string
repo required

The name of the repository without the .git extension. The name is not case sensitive.

string
tag_protection_id required

The unique identifier of the tag protection.

number

Responses

204

Response

unknown

Client Errors

403 application/json

Forbidden

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
404 application/json

Resource not found

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}