Delete ME after writing

@Dr15Jones 
this should address the comment you made to #5650

comments are welcome.. :)

ciao,
F.
The member data modified by ```markToDelete``` must be protected in a thread safe manner.