Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 —

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