delete data when train-image-data clicked