@Override
  public List<String> listAllEntities() {
    File userDir = SystemFileFactory.INSTANCE.getFile(entityDirPath);
    String[] names =
        userDir.list(
            (dir, name) ->
                (name.endsWith(IoTDBConstant.PROFILE_SUFFIX)
                        && !name.endsWith(ROLE_SUFFIX + IoTDBConstant.PROFILE_SUFFIX))
                    || (name.endsWith(TEMP_SUFFIX)
                        && !name.endsWith(
                            ROLE_SUFFIX + IoTDBConstant.PROFILE_SUFFIX + TEMP_SUFFIX)));
    return getEntityStrings(names);
  }
Delete a user's user file.

@param entityName The name of the user to be deleted.
@return True if the file is successfully deleted, false if the file does not exist.
@throws IOException when the file cannot be deleted.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/auth/user/LocalFileUserAccessor.java