Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete old deployments (versions) in Google Apps Script when I have over 1700 versions that are active or archived?

I have 1748 versions in Google Apps Script including the current version. I am trying to get down to below 200 to get below the 200 maximum coming in June. When I go to Manage Deployments, I see a bunch of versions in Active (versions I don't use anymore) and a bunch of versions in Archived (2 of which I use). I also use the current version.

What am I doing wrong and how to delete more? I'm also considering starting the project over by copying/pasting the current version, but it would be nice to also keep the other 2 versions that I use easily available.

I tried deleting some versions but only 4 of the 1700+ were able to be deleted. I was expecting to be able to delete more versions

like image 598
Ricardo Barrios Avatar asked Oct 27 '25 12:10

Ricardo Barrios


1 Answers

According to a recent release note, now there is an option to multiple unused versions at once.

(Generally Available): You can now delete multiple unused versions at the same time from the Project History page. Refer to Delete multiple versions.

From link included in the mentioned release note:

Delete multiple versions at once

To delete multiple versions at the same time, take the following steps:

  1. In your script project, click history Project History.
  2. Click Bulk delete versions. A dialog shows a list of versions that you can delete. Versions in use by an active deployment aren't included in the list.
  3. Select the versions to delete and click Delete. In the dialog, click Delete.

Another option is to use the Apps Script API. There is a command line app to use this API, the name is CLASP.

like image 135
Rubén Avatar answered Oct 29 '25 01:10

Rubén



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!