rmdir

To remove an existing directory, use the rmdir command in the EXEC mode.

rmdir word

Syntax Description

rmdir

The command to remove an existing directory.

word

Directory name. Supports up to 80 alphanumeric characters.

Defaults

No default behavior or values.

Command Modes

EXEC

Usage Guidelines

None.

Examples

/admin# mkdir disk:/test

/admin# dir

 

Directory of disk:/

 

4096 May 06 2010 13:34:49 activemq-data/

4096 May 06 2010 13:40:59 logs/

16384 Mar 01 2010 16:07:27 lost+found/

4096 May 06 2010 13:42:53 target/

4096 May 07 2010 12:26:04 test/

 

Usage for disk: filesystem

181067776 bytes total used

19084521472 bytes free

20314165248 bytes available

/admin#

 

/admin# rmdir disk:/test

/admin# dir

 

Directory of disk:/

 

4096 May 06 2010 13:34:49 activemq-data/

4096 May 06 2010 13:40:59 logs/

16384 Mar 01 2010 16:07:27 lost+found/

4096 May 06 2010 13:42:53 target/

 

Usage for disk: filesystem

181063680 bytes total used

19084525568 bytes free

20314165248 bytes available

/admin#

Related Commands

Command

Description

dir

Displays a list of files on the Cisco CDA server.

mkdir

Creates a new directory.