Changed logic so that we look for all paths that start with given hierarchy and delete them from file_exists database