restore deleting before loading