Problems to delete Excel-xlsm-File

I have a little problem with an Excel.xlsm File with Makros.
Recently I uploaded a bunch of files. One of them was an excel-xlsm-file (with Macros).
Now I am able to download this file but it is not possible to delete it.
So, what can I do to delete this file?
Thanks for help!

PS.: In the log I find:
opendir(/tmp): failed to open dir: Permission denied at /www/htdocs/w00f06af/nextcloud/lib/private/TempManager.php#189

Solved the problem.
It was a locked file problem!
Changing the config.php
’filelocking.enabled’ => false,
enables deleting the locked file.

You can also use a temp-folder within the nextcloud structure (or any folder you have full permissions) to use the file-locking feature.

 * Override where Nextcloud stores temporary files. Useful in situations where
 * the system temporary directory is on a limited space ramdisk or is otherwise
 * restricted, or if external storages which do not support streaming are in
 * use.
 * The Web server user must have write access to this directory.
'tempdirectory' => '/tmp/nextcloudtemp',

(and use redis as file-locking cache if it’s your system).

Hab die gleiche Meldung im Log FIle wie oben.
opendir(/tmp): failed to open dir: Permission denied at /www/xxxxxxx/lib/private/TempManager.php#189

Hab in der config.php dann folgendes eingefügt
’tempdirectory’ => ‘/tmp’,

und musste dann noch den Ordner tmp erstellen und mit 770 versehen.

Jetzt ist der Fehler im Log weg, was ja erstmal gut ist.
Im tmp Ordner erschienen bis jetzt aber noch nie irgendwelche Daten, ist das okay so?


There should only be temporary files, some session files or something. But nothing permanent (it’s cleaned up after a certain time). There should be something if you use Nextcloud (up and download with different client, some people accessing the webinterface, …). If it’s idle or only very little activity, these files are perhaps deleted faster than you can detect them.