Automaticaly remove share file

Hi all,
Someone in my NC community ask me how to config share with an death date to be remove files automaticaly?
It’s an open ask, thanks for your answers.

Guens

You can just set an expiration date on the share, and you can even enforce the max expiration date in the admin settings.

yes but the file is not remove after the expiration date?

Ah, if you’re sharing with other Nextcloud users, I don’t think you can set an expiration date for those ones. The expiration date right now only applies to public link shares, which you would have no control over deleting the files once the user downloads them from the browser.
Nextcloud 12 is going to have the ability to expire user shares, which I think is what you’re talking about. See the sharing with files section.

Thanks for your answer