The KioydioLabs Screenshot CDN CLI is a command-line tool that can be used to delete images or folders from a Cloudflare R2 bucket that's used with ShareX for uploading screenshots.
A guide on how to configure a bucket with ShareX can be found here.
To install it, make sure you have NodeJS and npm installed, then run the command below:
npm install --global @kioydiolabs/klb-screenshot-cdn-cli
After it has been installed, use cdn configure
anywhere, to setup your credentials for the bucket.
- Use
cdn delete <url>
where<url>
is the URL of the screenshot on the bucket, to delete that screenshot. You will be asked to confirm. You can use the-f, --force
to skip confirmation (use with caution). - If you have already deleted a file and want to purge its cache separately, you can use
cdn cachepurge <url>
where<url>
is the URL of the screenshot.
You can report bugs directly in the GitHub repository.
The project is licensed under the MIT license. In short, you can do anything you want. Read LICENSE.md for more details. We don't mind a little attribution though ;).