Technology Blog | labnol.org
When you share a folder or a file in Google Drive with anyone, the shared links will stay active forever until you manually change the access permissions. There isn’t a way to set an expiration date for your shared files or folders that will make these links unavailable after a certain date and time.
You can however add an auto-expire feature to any of your shared folders in Google Drive with the help of a simple Google Script.
Set Expiration Dates & Temporarily Share Google Drive Folders
You create a folder in Google Drive and share it with Public or a small group. You then specify a date/time when you want that shared link to expire. The script, at the specified time, will create a copy of your shared folder and delete the original one. Thus the shared links would no longer work though the folder and files will stay in your Google Drive.
Let’s get this to work now. Leer más “Set Auto-Expiry Dates for Shared Folders in Google Drive | labnol.org”