docs(readme): add cleanup script to README.md

This commit is contained in:
orhun 2021-08-27 22:19:40 +03:00
parent 38a0144ad7
commit 929f664b09
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90
1 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,12 @@ curl -F "file=@x.txt" -H "expire:10min" "<server_address>"
curl -F "oneshot=@x.txt" "<server_address>"
```
#### Cleaning Up Expired Files
```sh
find upload/ -maxdepth 2 -type f -iname "*.[0-9]*" -exec rm -v {} \;
```
#### URL Shortening
```sh