Removing unused samples