def _delete_attachment_meta_data(self, doc_id,attachment_name, datastore_name=""):
        if not type(doc_id) is str:
            raise BadRequest('doc_id must be string')
            # Get the document
        doc = self.read_doc(doc_id, datastore_name=datastore_name)
        # Remove attachment id and name from the document
        attachment_meta_data = [attachment_meta_data for attachment_meta_data in doc[self.__attachment_string] if attachment_meta_data[1] != attachment_name]
        doc[self.__attachment_string] = attachment_meta_data
        self.update_doc(doc, datastore_name=datastore_name)

    # -------------------------------------------------------------------------
    # View operations
Tests cleaning up the job.
dataset/ETHPy150Open ooici/pyon/pyon/datastore/couchbase/base_store.py/CouchbaseDataStore._delete_attachment_meta_data--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/test/mapreduce/handlers_test.py/CleanUpJobTest.testBasic