Remove operator rights
/deop SteveSteve loses operator rights at once but stays connected.

/deop takes operator status away from a player, who goes back to the commands every player has. It only exists on dedicated servers and is run from the server console or by an operator with level 3 or more.
/deop <targets>// Only on a dedicated server: the command does not exist in single player or in a world opened to LAN.
| Argument | Expects | What it does |
|---|---|---|
| targets | Player name | Name, UUID or selector of the operator to demote, for example Steve or @a[team=guests]. |
/deop SteveSteve loses operator rights at once but stays connected.
/op SteveUndoes a deop made by mistake.
Fill in the fields, then copy the command.
Command generatorThe change is immediate and saved in ops.json. The player stays connected but loses commands like /gamemode or /give. If the target is not an operator, the server answers Nothing changed. The player is not an operator.
You can deop yourself, so be careful on a server where you are the only operator: you will then need the console to get your rights back with /op. Removing rights does not undo what the player did. To keep someone out entirely, use /ban.
✓ Checked in Java Edition 26.3 · updated 2 November 2026
No. The player stays online and simply loses the operator commands.
Type op followed by your name in the server console. Without console access, ask another operator to run /op.
On a server, as an operator or from the server console: /deop <targets>. It does not exist in single player.
Server operator, level 3. Only on a dedicated server: the command does not exist in single player or in a world opened to LAN.