bvstone

GreenTools for G Suite (G4G) Updated to Include Delete and Empty Trash Function

Posted:

GreenTools for G Suite (G4G) Updated to Include Delete and Empty Trash Function

GreenTools for G Suite has been updated to include a new function that will allow you to delete files (instead of moving them to the trash) from your G Suite account.

The new function is named #g4gdrive_delete().  All you need to pass is your Google ID and the File ID and the file will be deleted.  For example:

#g4gdrv_setValue('id':'yourid@gmail.com');                                    
#g4gdrv_setValue('file_id':'1Zs4bc3jueqwgw1uLbyo7C5_k_I5pXRfl');        

rc = #g4gdrv_deleteFile(errorMsg);                            

This new feature can also easily be used to empty the trash for your account.  Just sustitue the value "trash" for the File ID (without quotes) and the trash will be emptied.

We do encourage customers to test these functions first and recovery of the files may be impossible, if not difficult.


Last edited 07/24/2018 at 15:17:17




Reply




© Copyright 1983-2024 BVSTools
GreenBoard(v3) Powered by the eRPG SDK, MAILTOOL Plus!, GreenTools for Google Apps, jQuery, jQuery UI, BlockUI, CKEditor and running on the IBM i (AKA AS/400, iSeries, System i).