Socket
Book a DemoInstallSign in
Socket

deploymentdelete

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

deploymentdelete

♻️ Deletes all Cloudflare deployments associated with an account.

unpublished
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

deploymentdelete ♻️

This utility deletes all deployments older than 7 days in your Cloudflare Pages account.

Installation

npm install -g deploymentdelete

CLI Usage

DeploymentDelete -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 <Email>  Cloudflare Account E-mail.
  -i, --ID <ID>        Cloudflare Account ID.
  -k, --Key <Key>      Cloudflare API key.
  -h, --help           display help for command

Worker

You can also publish it as a worker:

wrangler publish

Deploy to Cloudflare Workers

See running it on a schedule - https://developers.cloudflare.com/workers/configuration/cron-triggers/

Programmatically

Source/Index.ts

import Delete from "deploymentdelete";

await 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.

Keywords

cloudflare

FAQs

Package last updated on 12 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts