vm.device.delete
================

Delete a VM device of `id`.

.. raw:: html

    <div id="json-schema">
    <span class="badge badge-dark value-type">Type: object</span><br/>
    <div class="accordion" id="accordionCall_parameters">
    <div class="card">
    <div class="card-header" id="headingCall_parameters">
    <h2 class="mb-0">
    <button aria-controls="Call_parameters" aria-expanded="" class="btn btn-link property-name-button" data-target="#Call_parameters" data-toggle="collapse" onclick="setAnchor('#Call_parameters')" type="button"><span class="property-name">Call parameters</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingCall_parameters" class="collapse property-definition-div" data-parent="#accordionCall_parameters" id="Call_parameters">
    <div class="card-body pl-5">
    <span class="badge badge-dark value-type">Type: array</span><br/>
    <span class="badge badge-info no-additional">No Additional Items</span><h4>Tuple Validation</h4>
    <h5>Parameter 1: id</h5>
    <div class="card">
    <div class="card-body items-definition" id="Call_parameters_items_i0">
    <h4>id</h4><span class="badge badge-dark value-type">Type: integer</span><br/>
    <span class="description"><p>ID of the VM device to delete.</p>
    </span>
    </div>
    </div>
    <h5>Parameter 2: options</h5>
    <div class="card">
    <div class="card-body items-definition" id="Call_parameters_items_i1">
    <h4>options</h4><span class="badge badge-dark value-type">Type: object</span> <div class="json-default-value">Default:<div class="value">{
      "force": false,
      "raw_file": false,
      "zvol": false
    }</div></div><br/>
    <span class="description"><p>Options controlling the device deletion process.</p>
    </span> <span class="badge badge-info no-additional">No Additional Properties</span>
    <div class="accordion" id="accordionCall_parameters_items_i1_force">
    <div class="card">
    <div class="card-header" id="headingCall_parameters_items_i1_force">
    <h2 class="mb-0">
    <button aria-controls="Call_parameters_items_i1_force" aria-expanded="" class="btn btn-link property-name-button" data-target="#Call_parameters_items_i1_force" data-toggle="collapse" onclick="setAnchor('#Call_parameters_items_i1_force')" type="button"><span class="property-name">force</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingCall_parameters_items_i1_force" class="collapse property-definition-div" data-parent="#accordionCall_parameters_items_i1_force" id="Call_parameters_items_i1_force">
    <div class="card-body pl-5">
    <h4>Force</h4><span class="badge badge-dark value-type">Type: boolean</span> <span class="badge badge-success default-value">Default: false</span><br/>
    <span class="description"><p>Force deletion even if the device is in use.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionCall_parameters_items_i1_raw_file">
    <div class="card">
    <div class="card-header" id="headingCall_parameters_items_i1_raw_file">
    <h2 class="mb-0">
    <button aria-controls="Call_parameters_items_i1_raw_file" aria-expanded="" class="btn btn-link property-name-button" data-target="#Call_parameters_items_i1_raw_file" data-toggle="collapse" onclick="setAnchor('#Call_parameters_items_i1_raw_file')" type="button"><span class="property-name">raw_file</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingCall_parameters_items_i1_raw_file" class="collapse property-definition-div" data-parent="#accordionCall_parameters_items_i1_raw_file" id="Call_parameters_items_i1_raw_file">
    <div class="card-body pl-5">
    <h4>Raw File</h4><span class="badge badge-dark value-type">Type: boolean</span> <span class="badge badge-success default-value">Default: false</span><br/>
    <span class="description"><p>Delete the underlying raw disk file when removing the device.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionCall_parameters_items_i1_zvol">
    <div class="card">
    <div class="card-header" id="headingCall_parameters_items_i1_zvol">
    <h2 class="mb-0">
    <button aria-controls="Call_parameters_items_i1_zvol" aria-expanded="" class="btn btn-link property-name-button" data-target="#Call_parameters_items_i1_zvol" data-toggle="collapse" onclick="setAnchor('#Call_parameters_items_i1_zvol')" type="button"><span class="property-name">zvol</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingCall_parameters_items_i1_zvol" class="collapse property-definition-div" data-parent="#accordionCall_parameters_items_i1_zvol" id="Call_parameters_items_i1_zvol">
    <div class="card-body pl-5">
    <h4>Zvol</h4><span class="badge badge-dark value-type">Type: boolean</span> <span class="badge badge-success default-value">Default: false</span><br/>
    <span class="description"><p>Delete the underlying ZFS volume when removing the device.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionReturn_value">
    <div class="card">
    <div class="card-header" id="headingReturn_value">
    <h2 class="mb-0">
    <button aria-controls="Return_value" aria-expanded="" class="btn btn-link property-name-button" data-target="#Return_value" data-toggle="collapse" onclick="setAnchor('#Return_value')" type="button"><span class="property-name">Return value</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingReturn_value" class="collapse property-definition-div" data-parent="#accordionReturn_value" id="Return_value">
    <div class="card-body pl-5">
    <h4>Result</h4><span class="badge badge-dark value-type">Type: boolean</span><br/>
    <span class="description"><p>Whether the VM device was successfully deleted.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    </div><br><br>

*Required roles:* VM_DEVICE_WRITE

