Hi,
you might use the Nextcloud internal commands (like occ). For this you would have to switch into the Docker container by univention-app shell nextcloud.
Besides of this, if you are removing the app and want to remove all entries you might have a look at this article here.
/CV