Replace use of Retract with Delete
(cherry picked from commit 4a8df69ff84e48835481aac66543657a918322aa)