added extra check on dataset name before deletion