Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permanently delete file from Google Drive. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seferdemirci
Copy link

@seferdemirci seferdemirci commented Apr 2, 2021

When using insertImage() function, to prevent clone sheets from becoming a massive dump in the trash, please mind if add this piece of code.

Screen Shot 2021-04-03 at 01 32 01

…e sheets from becoming a massive dump in trash
@tanaikech
Copy link
Owner

Thank you for your pull request. About changing DriveApp.getFileById(tmpId).setTrashed(true); to Drive.Files.remove(tmpId);, Drive.Files.remove sometimes occurs an internal error. I'm worried that this might be related to the process of the file. But I have no clear information about it. So, I used DriveApp.getFileById(tmpId).setTrashed(true);. I deeply apologize that this was not your expected result.

@tanaikech
Copy link
Owner

Now, I came up with a direction. In this case, how about including Drive.Files.remove as an option? The default uses DriveApp.getFileById(tmpId).setTrashed(true);. When the option is used, Drive.Files.remove is used. How about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants