Delete
Delete a project branch
client.Projects.Branches.Delete(ctx, branch, body) (*ProjectBranchDeleteResponse, error)
delete/v0/projects/{project}/branches/{branch}
Delete a project branch
Parameters
branchstring
bodyProjectfieldProjectBranchDeleteParams
Returns
ProjectBranchDeleteResponseinterface
package main
import (
"context"
"fmt"
"github.com/stainless-api/stainless-api-go"
"github.com/stainless-api/stainless-api-go/option"
)
func main() {
client := stainless.NewClient(
option.WithAPIKey("My API Key"),
)
branch, err := client.Projects.Branches.Delete(
context.TODO(),
"branch",
stainless.ProjectBranchDeleteParams{
Project: stainless.String("project"),
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", branch)
}
200 Example
{}