Beispiel #1
0
def DeleteResourceSample():
    """Delete a resource (after creating it)."""
    client = CreateClient()
    doc = gdata.docs.data.Resource(type='document', title='My Sample Doc')
    doc = client.CreateResource(doc)
    # Delete the resource we just created.
    client.DeleteResource(doc)
Beispiel #2
0
def Delete():
  client = CreateClient()
  doc = gdata.docs.data.Resource(type='document', title='My Sample Doc')
  doc = client.CreateResource(doc)
  client.DeleteResource(doc)