From 929f664b097729ab074be91483f3bfd0da71b3c4 Mon Sep 17 00:00:00 2001 From: orhun Date: Fri, 27 Aug 2021 22:19:40 +0300 Subject: [PATCH] docs(readme): add cleanup script to README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 7116461..8137245 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,12 @@ curl -F "file=@x.txt" -H "expire:10min" "" curl -F "oneshot=@x.txt" "" ``` +#### Cleaning Up Expired Files + +```sh +find upload/ -maxdepth 2 -type f -iname "*.[0-9]*" -exec rm -v {} \; +``` + #### URL Shortening ```sh