I have a very unique issue whereby when I have certain Macs accessing our Synology NAS the Mac (Via Office 2016) create temporary files like in the screenshot.
These files are related to the Office autosave feature and should disappear when the document is closed but do not.
I'd like help with creating a script which I can run on a schedule to delete these folders which always have ".sb-" in the name, hence how we can search and delete based on this text string.
Please forgive me but I'm new to shell scripts and don't know much about Linux so help would be appreciated greatly.
TIA.