Removes unwanted library