utils: Added delete flag to revert masked.