rm.md 520 字节
Newer Older
G
gongweibao 已提交
1 2 3 4
# Name  
rm - remove files or directories

# Synopsis
G
gongweibao 已提交
5
```
G
gongweibao 已提交
6
rm [-r] [-v] <PFSPath> ...
G
gongweibao 已提交
7
```
G
gongweibao 已提交
8 9 10 11

# Description

```
G
gongweibao 已提交
12
The following options are available:
G
gongweibao 已提交
13

G
gongweibao 已提交
14 15 16 17 18
-r 
	remove directories and their contents recursively
	
-v      
	Cause rm to be verbose, showing files after they are removed.
G
gongweibao 已提交
19 20 21
```

# Examples
G
gongweibao 已提交
22
- The following command deletes a single file:
G
gongweibao 已提交
23 24

```
G
gongweibao 已提交
25
paddle pfs rm /pfs/$DATACENTER/home/$USER/test1.txt
G
gongweibao 已提交
26 27
```

G
gongweibao 已提交
28
- The following command deletes a  directory recursively:
G
gongweibao 已提交
29 30

```
G
gongweibao 已提交
31
paddle pfs rm -r /pfs/$DATACENTER/home/$USER/folder
G
gongweibao 已提交
32
```