Fix delete bug in previous changes to rest/host