PlayForm / Delete

♻️ Delete —

Home Page:https://NPMJS.Org/@playform/delete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

♻️ Delete —

Delete stale Cloudflare Pages deployment.
https://developers.cloudflare.com/api/operations/pages-deployment-delete-deployment

Installation

npm install -g @playform/delete

CLI Usage

Delete -e example@account.com -i accountId -k accountKey

Note

This will not delete your last running deployment.

Options

-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:

wrangler deploy

Deploy to Cloudflare Workers

Script

Source/Main.ts

await(await import("@playform/delete"))(Email, ID, Key);

.env

Email="example@account.com"
ID="accountId"
Key="accountKey"

Changelog

See CHANGELOG.md for a history of changes to this utility.

About

♻️ Delete —

https://NPMJS.Org/@playform/delete

License:MIT License


Languages

Language:TypeScript 74.2%Language:Shell 14.0%Language:JavaScript 11.8%