Skip to main content

Documentation Index

Fetch the complete documentation index at: https://code.storage/docs/llms.txt

Use this file to discover all available pages before exploring further.

const result = await repo.deleteBranch({
  name: "feature/old-onboarding",
});

console.log(result.message);
Branch names must not start with refs/. The repository’s default branch cannot be deleted.

Options

name
string
required
Branch name to delete (e.g. feature/old-onboarding). Must not start with refs/.

Response

name
string
The deleted branch name
message
string
Confirmation message from the API