'Delete Credential from datastore.'

def locked_delete(self):

    if self._cache:
        self._cache.delete(self._key_name)
    entity = self._model.get_by_key_name(self._key_name)
    if (entity is not None):
        entity.delete()
