How to restore deleted folders

Scenario to replicate

Web-Interface --> Users and --> Settings --> Group folders (Write and Share enabled)
User1 --> is in Group1 --> shares FolderA
User2 --> is in Group2 --> shares FolderA
User3 --> is in Group3 --> shares FolderA

In Windows 10 files system

  1. User1 creates in FolderA the subfolders Sub1, Sub2, Sub3 and creates in each subfolder a file named test1.txt

  2. All subfolders and files are synchronized to User2 and User3 and are visible on the Web-Interface by each user.

  3. User2 deletes the subfolder Sub3 in windows explorer

  4. The delete operation has been propagated to User1 and User3.

  5. When I try to restore the accidentlally deleted subfolder Sub3 from thrash, the thrash is by each of the users empty.

Nextcloud creates two folders (Documents and Photos) on the same level as the FolderA and some files. If I delete this folders and files by a User, the thrash shows the deleted folders and the files, but the delete operations are not propagated to the other users. This makes also no sense.


NextCloudPi version v0.53.4
NextCloudPi image NextCloudPi_03-18-18
distribution Raspbian GNU/Linux 9
automount yes
USB devices sda sdb
datadir /mnt/raid1/ncdata
data in SD no
data filesystem ext2/ext3
data disk usage 2.4G/229G
rootfs usage 1.7G/15G
swapfile /mnt/raid1/swap
Nextcloud check ok
Nextcloud version

Nextcloud Sync Client: Version 2.3.3 (build 1)

3 PC with Windows 10 (up to date) for User1, User2 and User3

This seems to be very useful, but after Google search, I found an official article to restore Windows deleted folders.
Otherwise you can only use third-party tools like Recuva, easeUS, Disk Drill, iCare Data Recovery, PhotoRec Data Recovery, anyrecover.