Skip to content
FeedbackDashboard

Delete a project branch

projects.branches.delete(branch, **kwargs) -> BranchDeleteResponse
DELETE/v0/projects/{project}/branches/{branch}

Delete a project branch by name.

ParametersExpand Collapse
project: String
branch: String
ReturnsExpand Collapse
untyped

Delete a project branch

require "stainless_v0"

stainless = StainlessV0::Client.new(
  api_key: "My API Key",
  environment: "staging" # defaults to "production"
)

branch = stainless.projects.branches.delete("branch", project: "project")

puts(branch)
{}
Returns Examples
{}