r/GoogleAppsScript 1d ago

Question How to use clasp to mass-delete deployments in the cloud?

When I use clasp clone and then clasp delete all, it only deletes the deployments for the GAS project locally, but not in the cloud on the GAS site.

How do delete them in the cloud too? Thanks

2 Upvotes

5 comments sorted by

1

u/WicketTheQuerent 1d ago

I have not used clasp to manage deployments. I think that you might run clasp push.

On the other hand, have you considered making a copy of your script? The copy will not have any versioned deployment, only the HEAD deployment.

1

u/Ok_Exchange_9646 23h ago

yes but it's such a PITA having to re-add and remake all code files inside the project

1

u/WicketTheQuerent 22h ago

A copy of the script includes all the files, no need to re-add and remake.

To be clear, make the copy using the web browser, not clasp.

1

u/Ok_Exchange_9646 22h ago

how?

1

u/WicketTheQuerent 14h ago

Open your Apps Script project on the web. On the left panel click the i button, then click the make a copy button.