1# rmdir<a name="EN-US_TOPIC_0000001179845933"></a> 2 3- [Command Function](#section1839611420266) 4- [Syntax](#section329574512266) 5- [Parameters](#section15865747102620) 6- [Usage](#section107857508261) 7- [Example](#section11196165315262) 8- [Output](#section1073811415613) 9 10## Command Function<a name="section1839611420266"></a> 11 12This command is used to delete a directory. 13 14## Syntax<a name="section329574512266"></a> 15 16rmdir \[_dir_\] 17 18## Parameters<a name="section15865747102620"></a> 19 20**Table 1** Parameter description 21 22<a name="table1557mcpsimp"></a> 23<table><thead align="left"><tr id="row1563mcpsimp"><th class="cellrowborder" valign="top" width="21%" id="mcps1.2.4.1.1"><p id="p1565mcpsimp"><a name="p1565mcpsimp"></a><a name="p1565mcpsimp"></a><strong id="b170710424141"><a name="b170710424141"></a><a name="b170710424141"></a>Parameter</strong></p> 24</th> 25<th class="cellrowborder" valign="top" width="52%" id="mcps1.2.4.1.2"><p id="p1567mcpsimp"><a name="p1567mcpsimp"></a><a name="p1567mcpsimp"></a><strong id="b10358846121415"><a name="b10358846121415"></a><a name="b10358846121415"></a>Description</strong></p> 26</th> 27<th class="cellrowborder" valign="top" width="27%" id="mcps1.2.4.1.3"><p id="p1569mcpsimp"><a name="p1569mcpsimp"></a><a name="p1569mcpsimp"></a><strong id="b171032047111410"><a name="b171032047111410"></a><a name="b171032047111410"></a>Value Range</strong></p> 28</th> 29</tr> 30</thead> 31<tbody><tr id="row1570mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p1572mcpsimp"><a name="p1572mcpsimp"></a><a name="p1572mcpsimp"></a>dir</p> 32</td> 33<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1574mcpsimp"><a name="p1574mcpsimp"></a><a name="p1574mcpsimp"></a>Specifies the name of the directory to be deleted. The directory must be empty. You can enter a path for this parameter.</p> 34</td> 35<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p1576mcpsimp"><a name="p1576mcpsimp"></a><a name="p1576mcpsimp"></a>N/A</p> 36</td> 37</tr> 38</tbody> 39</table> 40 41## Usage<a name="section107857508261"></a> 42 43- The **rmdir** command can only be used to delete directories. 44- The **rmdir** command can delete only one directory at a time. 45- The **rmdir** command can delete only empty directories. 46 47## Example<a name="section11196165315262"></a> 48 49Run **rmdir dir**. 50 51## Output<a name="section1073811415613"></a> 52 53**Figure 1** Deleting directory **dir**<a name="fig118404315311"></a> 54 55 56