core-5753 change delete to retract
core-5477 fix metadata view validation logic