A formal entry upon the record by the plaintiff in a civil suit, or the prosecuting officer in a criminal case, declaring the case will not be prosecuted.