Skip to content

Clasp undeploy doesn't free up versions to be deleted from Web UI resulting in inability to deploy new versions #1015

Description

@dustinkerstein

Expected Behavior

Undeploying via clasp undeploy should allow those versions to be deleted via the Apps Script Project History Web UI in the same way as archiving via the Web UI

Actual Behavior

clasp undeploy seems to undeploy, but there is something still left behind as those old versions can't be deleted in the Project History Web UI. Versions undeployed via Clasp don't show in the Project History Bulk Delete UI, and when trying to manually delete them one at a time in the Project History UI, it says "You can not delete this version as it is in use by some deployment". I believe this is very much related to what is mentioned here - https://stackoverflow.com/questions/78392922/how-do-i-delete-old-deployments-versions-in-google-apps-script-when-i-have-ove - but I seem to have created an even worse situation as I used Clasp to delete all deployments. And since they weren't deleted all of the way, I am still over the 200 version limit, and neither Clasp nor the Web UI will let me create new deployments. Any help / workarounds would be greatly appreciated as our production site is now down. Thanks!

Steps to Reproduce the Problem

  1. Deploy 2 versions (version A and version B) via Web or Clasp
  2. Undeploy (Archive) version A via the Web UI and note that you can delete this version in the Web UI Project History
  3. Undeploy version B via Clasp, and note that you can't delete this version in the Web UI Project History and it is stuck taking up 1 of the 200 version slots

Specifications

  • Node version: v20.12.0
  • Version: 2.4.2
  • MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions