Delete a CLI User Name

Before you begin

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

About this task

Use this task to delete a user name. You cannot delete default ro, rw, and rwa users.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Delete the user name:

    no username <WORD 1–20>

Example

Delete user name "smith":

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.