update delete-restore plugin