server: Fix instance deletion via HTTP API