# Duplicate Files, Delete not possible

**URL:** <https://help.nextcloud.com/t/duplicate-files-delete-not-possible/8869>\
**Category:** ℹ️ Support\
**Created:** [February 13, 2017, 2:42pm UTC](https://help.nextcloud.com/t/duplicate-files-delete-not-possible/8869 "2017-02-13T14:42:17Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Dark-Schnitzel](https://help.nextcloud.com/user_avatar/help.nextcloud.com/dark-schnitzel/32/23448_2.png) [@Dark-Schnitzel](https://help.nextcloud.com/u/Dark-Schnitzel)\
**Post date:** [February 20, 2017, 2:21pm UTC](https://help.nextcloud.com/t/duplicate-files-delete-not-possible/8869/11 "2017-02-20T14:21:23Z")

</div>

Found a semi solution.

Delete file locks with the command in this thread

CAUTION: My Folder was deleted after that, so Backup your Folder first

> [@Dateien lassen sich nicht löschen](https://help.nextcloud.com/t/dateien-lassen-sich-nicht-loeschen/5589/5):
>
> mmh, an diesem statement habe ich auch herumgebastelt. Hintergrund: meine Datenbank: mariadb Die Beschreibung ist etwas arg cryptisch! In meinem Fall musste ich folgende statements auf dem NC-Server absetzen: dbuser, dbname, dbpassword findest Du in /var/www/nextcloud/config/config.php mysql -u dbuser -p dbpassword use dbname; zunächst mal schauen ob es überhaupt locks gibt: select \* from oc\_file\_locks where oc\_file\_locks.lock != 0; Danach kann der lock dann mit delete from oc\_fi…

after that reuploaded the Folder and it works

---

_[View the full topic](https://help.nextcloud.com/t/duplicate-files-delete-not-possible/8869)._
