'Deletes an object from the db and the index, and flushes the caches.'

def DeleteUrn(self, urn):

    data_store.DB.DeleteSubject(urn, token=self.token)
    aff4.FACTORY._DeleteChildFromIndex(urn, token=self.token)
    aff4.FACTORY.Flush()
