How to delete an encrypted folder

Hello together
I’m using app Nextcloud Desktop-Client 3.11.0 for syncing my local files into the ā€œmagenta cloudā€, hosted on nextcloud.

The encryption is enabled for a folder ā€œDokumenteā€, where I added also one additional folder. After renaming these additional folder, there was something corrupted during synchonization and the foldername is now ā€œ9900fa767b18417e92bec7f7bccc026dā€ (local and in nextcould).
grafik

The easiest way for me should be just delete this folder.
But I cannot delete it over the app or directly in the cloud over browser (because is encrypted …).

If I delete it localy on my Windows PC, I’ve got a sync error message.
grafik

Any hint how to delete such a folder?

  • solved -

Over magentacloud settings I was able to deactivate the encryption and remove all enrypted files and folder.

Because there may be some confusion (see also here):

If you want to delete a single encrypted folder (without losing all other encrypted folders by resetting encryption) do this:

  1. ssh to your nextcloud-server
  2. move to your data-folder (e.g. /var/www/nextcloud-data)
  3. there, move further to <nextcloud-username>/files
  4. list files (ls) and identify the folder, you want to delete
  5. delete it by using rm -R <foldername>
  6. move to your nextcloud-folder (e.g. /var/www/nextcloud)
  7. enter there: sudo -u www-data php occ files:scan <nextcloud-username>
    (assumed your webserver-user is ā€˜www-data’ - if not, change it in the line before)