Skip to content

Commit 4ee01dc

Browse files
authored
fix: remove orphan rbac warning message (#6979)
The request will fail if the user doesn't have permissions, so it seems useless to output this.
1 parent 55c0b26 commit 4ee01dc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cli/delete.go

-8
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ func (r *RootCmd) deleteWorkspace() *clibase.Cmd {
3737
}
3838

3939
var state []byte
40-
41-
if orphan {
42-
cliui.Warn(
43-
inv.Stderr,
44-
"Orphaning workspace requires template edit permission",
45-
)
46-
}
47-
4840
build, err := client.CreateWorkspaceBuild(inv.Context(), workspace.ID, codersdk.CreateWorkspaceBuildRequest{
4941
Transition: codersdk.WorkspaceTransitionDelete,
5042
ProvisionerState: state,

0 commit comments

Comments
 (0)