code: def delete_all(self):
          '''Deletes all tag data.
  
          This does not destroy the ES index, but instead only
          deletes all tags with the configured doc types.
          '''
          try:
              self.conn.indices.delete_mapping(
                  index=self.index, doc_type=self.type_tag)
          except TransportError:
              logger.warn('type %r in index %r already deleted',
                          self.index, self.type_tag, exc_info=True)
          try:
              self.conn.indices.delete_mapping(
                  index=self.index, doc_type=self.type_assoc)
          except TransportError:
              logger.warn('type %r in index %r already deleted',
                          self.index, self.type_assoc, exc_info=Truef delete_all(self):
          '''Deletes all tag data.
  
          This does not destroy the ES index, but instead only
          deletes all tags with the configured doc types.
          '''
          try:
              self.conn.indices.delete_mapping(
                  index=self.index, doc_type=self.type_tag)
          except TransportError:
              logger.warn('type %r in index %r already deleted',
                          self.index, self.type_tag, exc_info=True)
          try:
              self.conn.indices.delete_mapping(
                  index=self.index, doc_type=self.type_assoc)
          except TransportError:
              logger.warn('type %r in index %r already deleted',
                          self.index, self.type_assoc, exc_info=True)
docs: Deletes all tag data.
  
          This does not destroy the ES index, but instead only
          deletes all tags with the configured doc types.