Implement mechanism for Google drive file cleanup

When files are uploaded to Legend, they get stored in the user's Google Drive. This provides an easy alternative way to access these files. However it appears that once a file is added there is no mechanism to sync it's deletion.

Example:

  1. In a test document, add a text item.

  2. Under the text item, drop a file or use the upload command. The file appears in a sub-directory under the _Legend Files folder.

  3. Delete the file that was dropped in in Legend. The file still exists in Google Drive.

The lack of deletion causes usage to slowly grow in Google Drive over time unnecessarily. it also presents a minor security concern in that data that the user thinks is gone is in fact still there.

Request:

  1. delete the file in GD when the item gets deleted in Legend (either immediately or as a nightly job that keeps the files in sync with the app.

  2. If #1 not possible, implement a way to see which files are orphaned so that an explicit user action to clean up can be initiated?

Feature
1
2 replies