Purge cache on retract and delete
Tests