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

Deleting a file using JS client fails #77

Closed
wonderfly opened this issue Jan 7, 2015 · 2 comments
Closed

Deleting a file using JS client fails #77

wonderfly opened this issue Jan 7, 2015 · 2 comments

Comments

@wonderfly
Copy link
Contributor

From boris.jo...@gmail.com on March 21, 2013 09:22:37

I've described the problem on StackOverflow and will keep updating the thread with new info. http://stackoverflow.com/questions/15532468/deleting-a-google-drive-file-using-js-client

Original issue: http://code.google.com/p/google-api-javascript-client/issues/detail?id=77

@wonderfly
Copy link
Contributor Author

From arp...@gmail.com on May 14, 2013 00:04:49

If you remove a document using:

var xmlReq = new XMLHttpRequest();
xmlReq.open('DELETE', ' https://www.googleapis.com/drive/v2/files/' + fileId + '?key=' + apiKey);
xmlReq.setRequestHeader('Authorization', 'Bearer ' + accessToken);

It will be invisible for the API list function but visible in Google Drive where it's corrupted. Meaning you can see its icon and name but not open or remove it.

@grant
Copy link
Contributor

grant commented Jan 17, 2019

This an issue with the Drive API v2, not the gapi client.

@grant grant closed this as completed Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants