Skip to content
Ona Docs

DeleteRunnerPolicy

client.Runners.Policies.Delete(ctx, body) (*RunnerPolicyDeleteResponse, error)
POST/gitpod.v1.RunnerService/DeleteRunnerPolicy

Deletes a runner policy.

Use this method to:

  • Remove access controls
  • Revoke permissions
  • Clean up policies

Examples

  • Delete policy:

    Removes a group’s access policy.

    runnerId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
    groupId: "f53d2330-3795-4c5d-a1f3-453121af9c60"
ParametersExpand Collapse
body RunnerPolicyDeleteParams
GroupID param.Field[string]Optional

group_id specifies the group_id identifier

formatuuid
RunnerID param.Field[string]Optional

runner_id specifies the project identifier

formatuuid
ReturnsExpand Collapse
type RunnerPolicyDeleteResponse interface{…}

DeleteRunnerPolicy

package main

import (
  "context"
  "fmt"

  "github.com/gitpod-io/gitpod-sdk-go"
  "github.com/gitpod-io/gitpod-sdk-go/option"
)

func main() {
  client := gitpod.NewClient(
    option.WithBearerToken("My Bearer Token"),
  )
  policy, err := client.Runners.Policies.Delete(context.TODO(), gitpod.RunnerPolicyDeleteParams{
    GroupID: gitpod.F("f53d2330-3795-4c5d-a1f3-453121af9c60"),
    RunnerID: gitpod.F("d2c94c27-3b76-4a42-b88c-95a85e392c68"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", policy)
}
{}
Returns Examples
{}