Rest: fixed deleteById()