cleans library upon path removal