App cannot be installed because it is already there.... but was deleted

I#d like to install the agallery app on my owoncloud but the server tells me the the directry already exists.

I try to deinstall the app which seems to be succesful.
When I try to reinstall the app I got the first response (see the shell log)

:/var/www/owncloud# sudo -u www-data ./occ market:install gallery
gallery: Installing new app ...
gallery: App directory already exists
n:/var/www/owncloud# sudo -u www-data ./occ market:uninstall gallery
gallery: Un-Installing new version ...
gallery: App uninstalled.
:/var/www/owncloud# sudo -u www-data ./occ market:install gallery
gallery: Installing new app ...
gallery: App directory already exists

Owncloud:
installed: true
- version: 10.0.5.4
- versionstring: 10.0.5
- edition: Community

Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial

Any Idea where the app is hiding?

Thanks

Georg

have you tried deleting the directory and installing the app again?

Hi dmitry

Where do I find the right directory?

Georg

I renamed the directory and installed gallery from scratch.
Thanks for the help