deletes res