# Cannot Delete Files - External Storage

**URL:** <https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191>\
**Category:** ℹ️ Support\
**Created:** [June 30, 2020, 7:05pm UTC](https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191 "2020-06-30T19:05:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ntouchable](https://help.nextcloud.com/letter_avatar/ntouchable/32/6_449c533f586939b6e5f246632a46421f.png) [@Ntouchable](https://help.nextcloud.com/u/Ntouchable)\
**Post date:** [June 30, 2020, 7:05pm UTC](https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191/1 "2020-06-30T19:05:10Z")

</div>

Nextcloud version \_16.0.3  
Operating system and version Docker \_Container (UnRaid)  
Apache or nginx version \_10.4.13-MariaDB-1:10.4.13+maria~bionic-log (Docker)  
Database Cache \_Redis

The issue you are facing:

I cannot delete or move **folders** that are stored in external storage devices.

I _can_ delete **files** within folders stored on external storage devices.

I can also delete and move files stored in the “Nextcloud” base directory.

The error I get is as follows:

 ![Screenshot from 2020-06-30 18-46-28](https://help.nextcloud.com/uploads/default/original/3X/5/7/5756e94756b256724a61eb17901f7f2b27ea3728.png)

However there are no obvious errors in the logfile. There are no locked files in the MySql database and I have run a maintenance repair, again with no errors.

I have not changed anything

Is this the first time you’ve seen this error? Y:

Steps to replicate it:

1. Tick \> Delete folder.
2. Blue Bar Starts to move across screen at the top.
3. "Error deleting file “Test”.

The output of your Nextcloud log in **Admin \> Logging** :

 ![Screenshot from 2020-06-30 20-06-53](https://help.nextcloud.com/uploads/default/original/3X/4/e/4eb3d1c7654b2f5dde8298d34b049be6186f56a4.png)

```auto
Please let me know if there is a way to upload the error log omitting IP addresses.

```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

```auto
<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '10.168.1.12',
    'port' => 6379,
  ),
  'datadirectory' => '/data',
  'instanceid' => 'XXX',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' => 
  array (
    0 => '10.168.1.12:444',
    1 => 'nextcloud.XXX.com',
  ),
  'dbtype' => 'mysql',
  'version' => '16.0.3.0',
  'overwrite.cli.url' => 'https://nextcloud.XXX.com',
  'overwirtehost' => 'nextcloud.XXX.com',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => '10.168.1.12:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'XXX',
  'dbpassword' => 'XXX',
  'installed' => true,
  'maintenance' => false,
);

```

I have tried all the obvious fixes and spent a considerable amount of time looking into this now.

Much appreciate if anyone can provide a solution.

---

<div class="post-metadata">

**Author:** ![Paradox551](https://help.nextcloud.com/user_avatar/help.nextcloud.com/paradox551/32/66929_2.png) [@Paradox551](https://help.nextcloud.com/u/Paradox551)\
**Post date:** [June 30, 2020, 8:35pm UTC](https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191/2 "2020-06-30T20:35:22Z")

</div>

Can you try 16.0.10 and tell us if this issue still exists? 16.0.3 is old.

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [July 1, 2020, 5:41am UTC](https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191/3 "2020-07-01T05:41:54Z")

</div>

Nextcloud 16 is unsupported.  
But the error is perhaps something with DB tables and timeouts.  
Perhaps something is too slow or your external storage is to big.  
Read an example [Corrupt DB-Tables?](https://help.nextcloud.com/t/corrupt-db-tables/77784)  
Perhaps you can increase "nnodb\_lock\_wait\_timeout”  
Please upgrade to newer nextcloud versions.

[https://nextcloud.com/changelog/](https://nextcloud.com/changelog/)

---

<div class="post-metadata">

**Author:** ![Ntouchable](https://help.nextcloud.com/letter_avatar/ntouchable/32/6_449c533f586939b6e5f246632a46421f.png) [@Ntouchable](https://help.nextcloud.com/u/Ntouchable)\
**Post date:** [July 1, 2020, 6:33pm UTC](https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191/4 "2020-07-01T18:33:03Z")

</div>

@devnull @Paradox551 Did not realise my Nextcloud was so out of date. I am used to my docker containers updating themselves.

I will update to version 18/19 and see if the issue persists.

I seem to have run into the following error at the moment at the backup stage. Any ideas?

 ![image](https://help.nextcloud.com/uploads/default/original/3X/d/e/de7d3380a5ff3b26f844667bde8c00e70ff1dd35.png)

Many thanks

---

<div class="post-metadata">

**Author:** ![Ntouchable](https://help.nextcloud.com/letter_avatar/ntouchable/32/6_449c533f586939b6e5f246632a46421f.png) [@Ntouchable](https://help.nextcloud.com/u/Ntouchable)\
**Post date:** [July 1, 2020, 7:09pm UTC](https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191/5 "2020-07-01T19:09:15Z")

</div>

The back up error seems to be related to the server timing out whilst creating the back up.

I can’t seem to figure out where to increase the timeout limit.

---

<div class="post-metadata">

**Author:** ![Ntouchable](https://help.nextcloud.com/letter_avatar/ntouchable/32/6_449c533f586939b6e5f246632a46421f.png) [@Ntouchable](https://help.nextcloud.com/u/Ntouchable)\
**Post date:** [July 1, 2020, 8:14pm UTC](https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191/6 "2020-07-01T20:14:46Z")

</div>

Update: Managed to get around the above issue by just waiting a few minutes then refreshing the page.

New problem updating to Nextcloud 18 is that how a get a HTTP 500 error, but that is something to deal with tomorrow night…

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [July 2, 2020, 5:19am UTC](https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191/7 "2020-07-02T05:19:24Z")

</div>

If you have shell accecess (ssh) you should use

`php updater/updater.phar`

instead of web updater.

[https://docs.nextcloud.com/server/19/admin\_manual/maintenance/update.html](https://docs.nextcloud.com/server/19/admin_manual/maintenance/update.html)

-\> part “Using the command line based updater”

---

<div class="post-metadata">

**Author:** ![Ntouchable](https://help.nextcloud.com/letter_avatar/ntouchable/32/6_449c533f586939b6e5f246632a46421f.png) [@Ntouchable](https://help.nextcloud.com/u/Ntouchable)\
**Post date:** [July 2, 2020, 7:01pm UTC](https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191/8 "2020-07-02T19:01:05Z")

</div>

Many thanks for your help Devnull.

I managed to figure that out in the end and will be sure to the use the command line based updater to keep Nextcloud up to date in the future.

I can now delete files, etc. too.

Thanks again

---

<div class="post-metadata">

**Author:** ![JimmyKater](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmykater/32/4850_2.png) [@JimmyKater](https://help.nextcloud.com/u/JimmyKater)\
**Post date:** [July 29, 2020, 7:54am UTC](https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191/9 "2020-07-29T07:54:15Z")

</div>

2 posts were split to a new topic: [Issues with deleting, moving, and renaming files - External storage](https://help.nextcloud.com/t/issues-with-deleting-moving-and-renaming-files-external-storage/88500)

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 7:33am UTC](https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191/10 "2024-12-12T07:33:46Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 7:33am UTC](https://help.nextcloud.com/t/cannot-delete-files-external-storage/86191/11 "2024-12-12T07:33:47Z")

</div>


