## DeleteRoleAssignment `client.Groups.RoleAssignments.Delete(ctx, body) (*GroupRoleAssignmentDeleteResponse, error)` **post** `/gitpod.v1.GroupService/DeleteRoleAssignment` Deletes a role assignment. Use this method to: - Remove group access to resources - Revoke role-based permissions ### Examples - Delete a role assignment: Removes a role assignment by its ID. ```yaml assignmentId: "a1b2c3d4-5678-90ab-cdef-1234567890ab" ``` ### Authorization Requires admin role on the specific resource. ### Parameters - `body GroupRoleAssignmentDeleteParams` - `AssignmentID param.Field[string]` ### Returns - `type GroupRoleAssignmentDeleteResponse interface{…}` Empty response ### 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"), ) roleAssignment, err := client.Groups.RoleAssignments.Delete(context.TODO(), gitpod.GroupRoleAssignmentDeleteParams{ AssignmentID: gitpod.F("a1b2c3d4-5678-90ab-cdef-1234567890ab"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", roleAssignment) } ``` #### Response ```json {} ```