News
Game
Guides
Downloads
Versions
/deop
COMMANDS SERVER ADMIN SERVER · LEVEL 3 Added in 1.14 or earlier

/deop command in Minecraft

/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.

Syntax

/deop <targets>

// Only on a dedicated server: the command does not exist in single player or in a world opened to LAN.

ArgumentExpectsWhat it does
targetsPlayer nameName, UUID or selector of the operator to demote, for example Steve or @a[team=guests].

Examples

Remove operator rights

/deop Steve

Steve loses operator rights at once but stays connected.

Java 26.3

Give the rights back

/op Steve

Undoes a deop made by mistake.

Java 26.3
Build your command

Fill in the fields, then copy the command.

Command generator

How /deop works

The 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

/deop: FAQ

Does /deop kick the player?

No. The player stays online and simply loses the operator commands.

How do I get my rights back after deopping myself?

Type op followed by your name in the server console. Without console access, ask another operator to run /op.

How do I use /deop?

On a server, as an operator or from the server console: /deop <targets>. It does not exist in single player.

Who can use /deop?

Server operator, level 3. Only on a dedicated server: the command does not exist in single player or in a world opened to LAN.

Related commands