checkAndDelete