Skip to main content
DELETE
TypeScript

Authorizations

Authorization
string
header
required

JWT bearer token signed with your organization's registered signing key. There is no OAuth authorization server; you mint tokens yourself and the token's scopes claim carries the granted permission scopes. Public scopes: git:read (read repository contents), git:write (write branches, commits, tags, and notes), repo:write (create and manage repositories), org:read (list an organization's repositories). Each operation's security requirement names the scopes it requires. See https://code.storage/docs/getting-started/authentication for how to mint tokens.

Path Parameters

repo_name
string
required

The repository name, for example acme/web.

Query Parameters

object_ref
string

Git object whose note should be deleted: a full object SHA (a commit, tree, blob, or annotated tag), or a branch, tag, or other revision that resolves to a commit. Required unless the deprecated body names the object.

notes_ref
string

Optional notes ref to delete from. A bare name like reviews is placed under refs/notes/; a fully-qualified refs/notes/* ref is also accepted. Defaults to refs/notes/commits.

expected_notes_ref_sha
string

Optional compare-and-swap guard: the notes ref SHA that you read before the delete. The delete fails with 409 when the notes ref has a different SHA.

Body

application/json

Deprecated: send the object_ref, notes_ref, and expected_notes_ref_sha query parameters, and no body. A query parameter wins over its body field.

Deprecated delete-note body. Use the object_ref, notes_ref, and expected_notes_ref_sha query parameters.

action
string
deprecated

Deprecated: a delete ignores action.

author
object
deprecated

Deprecated: no replacement. Without author, the notes commit of a delete has the default author. Author object with name and email for the notes commit.

expected_notes_ref_sha
string
deprecated

Deprecated: use the expected_notes_ref_sha query parameter. Optional compare-and-swap guard for the notes ref.

expected_ref_sha
string
deprecated

Deprecated: use the expected_notes_ref_sha query parameter. Optional compare-and-swap guard for the notes ref.

note
string
deprecated

Deprecated: a delete ignores note.

notes_ref
string
deprecated

Deprecated: use the notes_ref query parameter. Optional notes ref to target.

Example:

"refs/notes/commits"

object_ref
string
deprecated

Deprecated: use the object_ref query parameter. Git object the note attaches to.

Example:

"b003fc78805954584e1ee364a4ad39d7c79e819a"

ref
string
deprecated

Deprecated: use the notes_ref query parameter. Optional notes ref to target.

Example:

"refs/notes/commits"

sha
string
deprecated

Deprecated: use the object_ref query parameter. Git object SHA the note attaches to.

Example:

"b003fc78805954584e1ee364a4ad39d7c79e819a"

Response

Note removed from the notes ref.

Result of a notes write operation, including the resulting notes ref state.

new_ref_sha
string
required

New notes ref SHA after the operation.

Example:

"3a1d9f7d6b6d482c970554e2a6ef980ecf4f1d55"

notes_ref
string
required

The notes ref the operation updates.

Example:

"refs/notes/commits"

result
object
required

Operation result with success, status, and optional message.

sha
string
required

The commit SHA the note is attached to.

Example:

"b003fc78805954584e1ee364a4ad39d7c79e819a"

target_ref
string
required
deprecated

Deprecated: use notes_ref. The notes ref the operation updates.

Example:

"refs/notes/commits"

base_commit
string

Previous notes ref commit SHA.

Example:

"0c8b5bb9d550d58fcfd651a4fdce8024ef7f1492"