Block delete would be the simplest solution for you if you have no experience with program logic or macros. Just turn off the block delete when you want to do a measurement