Clearing unused gems.