add another check before 'DELETE /instances/i-xxxxx'.