Delete file in v3 with Python [Service Account]
<p>I'm using Google Drive, and my code's using v3 for work with files by Service Account.
I can read, download the file, but I can't delete.
I tried with v2 delete (I don't find v3 delete) and no works(not permissions). I tried after with V2 impersonate admin account and no works.</p>

<p>Recently, I tried with <a href="https://developers.google.com/identity/protocols/OAuth2ServiceAccount#authorizingrequests" rel="nofollow">this link</a> but, no works for no scopes</p>

<pre><code>def get_credenciales_with_impersonate():    
    delegated_credentials =  get_credenciales().create_delegated(admin_email)
    from httplib2 import Http
    http_auth = get_credenciales().authorize(Http())
    print(type(http_auth))
   return http_auth
</code></pre>

<p>...</p>

<pre><code>serviceV2Impersonate = discovery.build('drive','v2',http=get_credenciales_with_impersonate())
</code></pre>

<p>My normal credentials is:</p>

<pre><code>def get_credenciales():
    credenciales = ServiceAccountCredentials.from_p12_keyfile(
    client_email,p12_file)
    return credenciales
</code></pre>

<p>and works</p>

<pre><code>serviceV2 = discovery.build('drive','v2',credentials=credentials)
serviceV3 = discovery.build('drive','v3',credentials=credentials)
</code></pre>

<p>How I could delete a file from drive with v3 and Python?</p>

<ul>
<li>Service account with XXXXX@appspot.gserviceaccount.com</li>
<li>The other email is admin email</li>
<li>The owner of the file is admin email. I can´t change the owner -differents domains between gserviceaccount and my domain-</li>
<li>Sorry my bad english.</li>
</ul>