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

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

# Description

```
G
gongweibao 已提交
12 13
-r, -R, --recursive 
	remove directories and their contents recursively
G
gongweibao 已提交
14

G
gongweibao 已提交
15 16
--page-size (integer) 
	The number of results to return in each response to a list operation. The default value is 1000 (the maximum allowed). Using a lower value may help if an operation times out	
G
gongweibao 已提交
17 18 19
```

# Examples
G
gongweibao 已提交
20
- The following command deletes a single files
G
gongweibao 已提交
21 22

```
G
gongweibao 已提交
23
paddle pfs rm pfs://mydirectory/test1.txt
G
gongweibao 已提交
24 25 26 27 28 29 30 31 32
```

Output

```
delete pfs://mydirectory/test1.txt
```


G
gongweibao 已提交
33
- The following command deletes a  directory recursively.
G
gongweibao 已提交
34 35

```
G
gongweibao 已提交
36
paddle pfs rm -r pfs://mydirectory
G
gongweibao 已提交
37 38 39 40 41 42 43 44 45
```

Output

```
delete pfs://mydirectory/1.txt
delete pfs://mydirectory/2.txt
...
```