% Remove all loaded subpaths from the matlab path
function clear()
    state = mpm.load_state();

    subpaths = state.added_paths.keys();

    for i = 1:length(subpaths)
        rmpath(subpaths{i});
        state.added_paths.remove(subpaths{i});
    end

    mpm.save_state(state);
end
