Codeberg icon

Codeberg

Interact with the Codeberg API

Branch → Delete

AI-generated

Summary

Delete the specified branch from a repository on Codeberg.

Inputs

  • Authentication — Choose the authentication method: Access Token or OAuth2.
  • Repository Owner (required) — Owner of the repository to delete the branch from.
  • Repository Name (required) — Name of the repository to delete the branch from.
  • Branch Name (required) — The name of the branch to delete.

Output shape

a single JSON object indicating success

Returns JSON with a success property set to true upon successful deletion. No additional data is returned.

Examples

Example 1: Delete a branch named 'feature/my-feature' from repository 'my-repo' owned by 'my-org'

Set 'Repository Owner' to 'my-org', 'Repository Name' to 'my-repo', and 'Branch Name' to 'feature/my-feature'.

Links

Discussion