## 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. ```yaml runnerId: "d2c94c27-3b76-4a42-b88c-95a85e392c68" groupId: "f53d2330-3795-4c5d-a1f3-453121af9c60" ``` ### Parameters - `body RunnerPolicyDeleteParams` - `GroupID param.Field[string]` group_id specifies the group_id identifier - `RunnerID param.Field[string]` runner_id specifies the project identifier ### Returns - `type RunnerPolicyDeleteResponse interface{…}` ### Example ```go 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) } ``` #### Response ```json {} ```