Search code examples
google-apps-scriptgoogle-cloud-platformgoogle-apigoogle-workspacegoogle-api-nodejs-client

Can we uninstall/remove Google Workspace Marketplace App from organization using API?


basically user can manually uninstall app, but we want uninstall app using any RestAPI using access Token


Solution

  • It is not possible to uninstall an app on behalf of a user with the API since there is no existing API method to achieve this.

    What you can do instead is to use the tokens.delete method to remove the access of the app to the user's account, however the user will still be able to see the app installed for them and would just need to authorize the app once again to have the access back.

    At of now, if you need to uninstall the app it would still need to be using the Admin console web UI. I also found that there is an existing report in Google's issue tracker where you can add more info for Google to analyze the feature request and possible develop an API method for this in the future.

    References: