From the zen of python, "flat is better than nested." I'd go with Option #1 style in general, though I'm a bit confused as to whether dbObject=db.GqlQuery("SELECT.... or dbObject.delete() raises an AttributeError. In any case though, you shouldn't have to call the dbObject.delete() more than once.