'Deprecated in 1.7.4. Delete the schema from the index.
We are deprecating this method and replacing with more general schema
and index managment.
A possible use may be remove typed fields which are no longer used. After
you delete the schema, you need to index one or more documents to rebuild
the schema. Until you re-index some documents, searches may fail, especially
searches using field restricts.
Raises:
DeleteError: If the schema failed to be deleted.'

def delete_schema(self):

    warnings.warn('delete_schema    is    deprecated    in    1.7.4.', DeprecationWarning, stacklevel=2)
    request = search_service_pb.DeleteSchemaRequest()
    response = search_service_pb.DeleteSchemaResponse()
    params = request.mutable_params()
    _CopyMetadataToProtocolBuffer(self, params.add_index_spec())
    def hook():
        results = self._NewDeleteResultList([self.name], response)
        if (response.status_size() != 1):
            raise DeleteError('did    not    delete    exactly    one    schema', results)
        status = response.status_list()[0]
        if (status.code() != search_service_pb.SearchServiceError.OK):
            raise DeleteError(_ConcatenateErrorMessages('delete    schema    operation    failed', status), results)
    return _RpcOperationFuture('DeleteSchema', request, response, None, hook).get_result()
