clasp icon indicating copy to clipboard operation
clasp copied to clipboard

Add command to delete Apps Script projects

Open elderfd opened this issue 4 years ago • 1 comments

For testing + staging purposes we'd like to be able to spin up ephemeral Apps Script projects which exist only to test a PR. We can currently create the projects with clasp create but there is no matching clasp delete to clean up afterwards.

Expected Behavior

There is a clasp delete command to delete the Apps Script project with a particular ID (or read from .clasp.json).

Actual Behavior

N/A

Steps to Reproduce the Problem

N/A

Specifications

N/A

elderfd avatar Jul 24 '20 08:07 elderfd

I did a PR with a delete command reading the ids only from the .clasp.json only, because in the case of a parent is needed to delete the parent and not the appscript. So a command like: clasp delete APPSCRIPTID --parentId PARENTID will have to ignore the APPSCRIPTID, which I think looks 'strange', and without the PARENTID will not work.

fantonangeli avatar Nov 30 '21 09:11 fantonangeli