Permanently deletes all of the user's trashed files.
import sys
import chilkat
rest = chilkat.CkRest()
# Provide a previously obtained OAuth2 access token.
oauth2 = chilkat.CkOAuth2()
oauth2.put_AccessToken("OAUTH2_ACCESS_TOKEN")
rest.SetAuthOAuth2(oauth2)
success = rest.Connect("www.googleapis.com",443,True,True)
if (success != True):
print(rest.lastErrorText())
sys.exit()
sbResponse = chilkat.CkStringBuilder()
success = rest.FullRequestNoBodySb("DELETE","/drive/v3/files/trash",sbResponse)
if (success != True):
print(rest.lastErrorText())
sys.exit()
if (rest.get_ResponseStatusCode() != 204):
print("Received error response code: " + str(rest.get_ResponseStatusCode()))
print("Response body:")
print(sbResponse.getAsString())
sys.exit()
print("Example Completed.")