Improved clearData to remove and reset and loaded/imported data.