@Override
  public void deleteTableDevice(final DeleteTableDeviceNode deleteTableDeviceNode)
      throws MetadataException {
    if (mTree.deleteTableDevice(
        deleteTableDeviceNode.getTableName(),
        size -> deviceAttributeStore.removeAttribute(size, deleteTableDeviceNode.getTableName()))) {
      deviceAttributeCacheUpdater.invalidate(deleteTableDeviceNode.getTableName());
      writeToMLog(deleteTableDeviceNode);
    }
  }
remove the node from the tag inverted index
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/impl/SchemaRegionMemoryImpl.java