How to get rid of dev-marketplace-automation-user branches

In one of our Looker git projects there exists more than a thousand personal branches belonging to the user “dev-marketplace-automation-user-aaaaaa-bbbb” (where aaaaaa and bbbb are unique hex values). We do have Marketplace enabled but only have API Explorer installed. Also, not sure why these appear in this specific project but not in any other project. The branches show they were created over the last couple years with the most recent one about 14 months ago. This makes enumerating branches incredibly slow and clutters the branch management page. Is there a way to delete them?

1 Like

Hi @jhyuneb These branches were most likely created automatically by a Marketplace app or an API automation user. If they are no longer used, you can delete them directly in your Git provider such as GitHub or GitLab, including deleting them in bulk. After that, refresh the repository in Looker. If you do not want new ones to appear again, disable or remove the automation user. If the reason is still unclear, contact Looker Support.

The problem is the branches do not show up in the remote repo server. The branches only show up in the Looker server and they show up as a “Personal” branch which means only the user that created the branch can delete them. Normally I can sudo as the user to delete a personal branch (delete their copy) but these users do not exist and so I cannot do that.