rmdir

Deletes an existing directory from the file system (only empty directories can be removed)

Supported on the following devices:

Syntax

rmdir <DIR>

Parameters

rmdir <DIR>

rmdir <DIR>

Specifies the directory name

Note: The directory, specified by the <DIR> parameter, is removed from the file system.

Examples

nx9500-6C8809#dir
Directory of flash:/.

  drwx             Wed Feb 27 13:42:52 2019   Final
  drwx             Mon Jul  1 14:22:27 2019   compliance_log
  drwx             Thu Sep 27 07:10:45 2018   tmptpd
  drwx             Thu Sep 27 07:10:45 2018   floorplans
  drwx             Mon Mar  4 12:07:23 2019   crashinfo
  drwx             Thu Sep 27 07:11:07 2018   hotspot
  drwx             Thu Sep 27 07:10:45 2018   cache
  drwx             Mon Jul  1 14:23:01 2019   archived_logs
  drwx             Thu Jul 18 18:39:16 2019   log
  drwx             Thu Sep 27 07:10:45 2018   upgrade

nx9500-6C8809#
nx9500-6C8809#rmdir Final
nx9500-6C8809#dir
Directory of flash:/.

  drwx             Mon Jul  1 14:22:27 2019   compliance_log
  drwx             Thu Sep 27 07:10:45 2018   tmptpd
  drwx             Thu Sep 27 07:10:45 2018   floorplans
  drwx             Mon Mar  4 12:07:23 2019   crashinfo
  drwx             Thu Sep 27 07:11:07 2018   hotspot
  drwx             Thu Sep 27 07:10:45 2018   cache
  drwx             Mon Jul  1 14:23:01 2019   archived_logs
  drwx             Thu Jul 18 18:39:16 2019   log
  drwx             Thu Sep 27 07:10:45 2018   upgrade

nx9500-6C8809#