Deletes a disk snapshot based on the given VM and the disk_id.

    .. versionadded:: 2016.3.0

    name
        The name of the VM containing the snapshot to delete.

    disk_id
        The ID of the disk to save.

    snapshot_id
        The ID of the snapshot to be deleted.

    CLI Example:

    .. code-block:: bash

        salt-cloud -a vm_disk_snapshot_delete my-vm disk_id=0 snapshot_id=6

def vm_disk_snapshot_delete(name, kwargs=None, call=None):
    '''
    Deletes a disk snapshot based on the given VM and the disk_id.

    .. versionadded:: 2016.3.0

    name
        The name of the VM containing the snapshot to delete.

    disk_id
        The ID of the disk to save.

    snapshot_id
        The ID of the snapshot to be deleted.

    CLI Example:

    .. code-block:: bash

        salt-cloud -a vm_disk_snapshot_delete my-vm disk_id=0 snapshot_id=6
    '''
    if call != 'action':
        raise SaltCloudSystemExit(
            'The vm_disk_snapshot_delete action must be called with -a or --action.'
        )

    if kwargs is None:
        kwargs = {}

    disk_id = kwargs.get('disk_id', None)
    snapshot_id = kwargs.get('snapshot_id', None)

    if disk_id is None or snapshot_id is None:
        raise SaltCloudSystemExit(
            'The vm_disk_snapshot_create function requires a \'disk_id\' and a \'snapshot_id\' '
            'to be provided.'
        )

    server, user, password = _get_xml_rpc()
    auth = ':'.join([user, password])
    vm_id = int(get_vm_id(kwargs={'name': name}))
    response = server.one.vm.disksnapshotdelete(auth,
                                                vm_id,
                                                int(disk_id),
                                                int(snapshot_id))

    data = {
        'action': 'vm.disksnapshotdelete',
        'deleted': response[0],
        'snapshot_id': response[1],
        'error_code': response[2],
    }

    return data