Delete a Username

About this task

Use this task to delete a username. Default ro, rw, and rwa users cannot be deleted.

Before you begin

You must use an account with read-write-all privileges to delete a user.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Delete the username:

    no username <WORD 1–20>

Example

Delete a user:

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#no username smith
The specified username will be deleted! Contiune (y/n) ? Y
Switch:1(config)#show cli username smith
Username does not exit

Variable Definitions

The following table defines parameters for the no username command.

Variable

Value

WORD <1–20>

Specifies the username to delete.

enable

Disables the username.