How to delete files of LDAP user

As far as I not nextcloud works like this:
If you delete a user all the files of this user are deleted as well.
If you use LDAP for authentication and delete a user the files are not deleted automatically, aren`t they?
So, how can I delete all the content of a LDAP user, when he leaves.

Thank you.
Gerald

Show all users no longer in ldap:

sudo occ ldap:show-remnants

And if a user is in this table can you just delete it with:

sudo occ user:delete <nextcloud-name>

Nextcloud name is the first column then showing the users. It can be AD Guid, uid or some other unique Id for each user