'Delete an object if versioning is not enabled for the bucket, or if generation
parameter is used.
:param bucket: name of the bucket, where the object resides
:type bucket: string
:param object: name of the object to delete
:type object: string
:param generation: if present, permanently delete the object of this generation
:type generation: string
:return: True if succeeded'

def delete(self, bucket, object, generation=None):

    service = self.get_conn()
    try:
        service.objects().delete(bucket=bucket, object=object, generation=generation).execute()
        return True
    except errors.HttpError as ex:
        if (ex.resp['status'] == '404'):
            return False
        raise
