# strazactl roles delete

Delete a role; its assignments and access rows go with it


## Synopsis

Deletes the role: its assignments and access rows go with it.
A product role cannot be deleted and answers 409, which covers
`straza-admin` and the two `straza-enroll` roles. To take someone's
access away, run strazactl unassign with the role and --user instead.
A live policy set whose match.roles names only this role is turned off
with it, since it would match nobody. The answer names such sets.

```
strazactl roles delete <name> [flags]
```

## Options

```
      --yes    delete without the interactive confirm
```

## Options inherited from parent commands

```
      --server string   strazad base URL (overrides $STRAZA_SERVER)
```

## See also

* [strazactl roles](https://docs.straza.ai/reference/cli/strazactl/strazactl_roles/index.md): Manage roles



