Users

The groupdel command

Deletes a group from the system.

Syntax

sudo groupdel grupo

Copy-ready examples

$ sudo groupadd temporal && sudo groupdel temporalCreate and delete a group

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • You cannot delete a group if it is some user's primary group.

Related commands

FAQ

Does it delete its members too?

No: only the group. The users remain.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course