mark delete logic