How to delete complete Repositories using Bitbucket-Server REST-API?

Is there a REST-API to delete complete repositories on Bitbucket-Server?

Background: Maintainance reasons.
Over the years, we have quite a few empty repositories on our production bitbucket server (users created empty repositories - but never puhsed to them). Those repositories are not needed anymore. I want to create a script which cleans up Bitbucket server from those empty repositories periodically.

Hi @JohannesKilian, you can write your custom script and use the REST API to fetch and delete the empty repositories:

Maciej