delete sample method in train