Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/playform/delete
♻️ Delete —
https://github.com/playform/delete
cloudflare cloudflare-pages cloudflare-workers delete deployment playform worker
Last synced: 3 months ago
JSON representation
♻️ Delete —
- Host: GitHub
- URL: https://github.com/playform/delete
- Owner: PlayForm
- License: cc0-1.0
- Created: 2023-08-12T02:36:06.000Z (over 1 year ago)
- Default Branch: Current
- Last Pushed: 2024-11-07T02:06:43.000Z (3 months ago)
- Last Synced: 2024-11-07T03:18:55.336Z (3 months ago)
- Topics: cloudflare, cloudflare-pages, cloudflare-workers, delete, deployment, playform, worker
- Language: TypeScript
- Homepage: https://NPMJS.Org/@playform/delete
- Size: 1.34 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# ♻️ [Delete] —
Delete stale Cloudflare Pages deployment. \
https://developers.cloudflare.com/api/operations/pages-deployment-delete-deployment## 🚀 Installation
```sh
npm install -g @playform/delete
```## CLI Usage
```sh
Delete -e [email protected] -i accountId -k accountKey
```> **Note**
>
> This will not delete your last running deployment.## Options
```sh
-V, --version output the version number
-e, --Email Account E-mail. < Email > Cloudflare
-i, --ID Account ID. < ID > Cloudflare
-k, --Key API key. < Key > Cloudflare
-h, --help display help for command
```## Worker
You can also publish it as a worker:
```sh
wrangler deploy
```[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/PlayForm/Delete)
## Script
**`Source/Main.ts`**
```ts
await(await import("@playform/delete"))(Email, ID, Key);
```**`.env`**
```sh
Email="[email protected]"
ID="accountId"
Key="accountKey"
```## Changelog
See [`CHANGELOG.md`](CHANGELOG.md) for a history of changes to this utility.
[Delete]: HTTPS://NPMJS.Org/@playform/delete