Methods to mark items as invalid and remove them