S3 user data doesn't get deleted after removal


So I am currently having an issue if I remove a user and create it again the data stays, and it could be a security risk.

Normally it has been fixed in nextcloud 17 or 18, but it looks like it’s still the case : https://github.com/nextcloud/server/issues/9690

Could someone give me maybe a code spinnet to fix this?
Thanks for the help.