def delete_disk(kwargs=None, conn=None, call=None):
    if call != 'function':
        raise SaltCloudSystemExit(
            'The delete_disk function must be called with -f or --function.'
        )

    if kwargs is None:
        kwargs = {}

    if 'name' not in kwargs:
        raise SaltCloudSystemExit('A name must be specified as "name"')

    if not conn:
        conn = get_conn()

    try:
        data = conn.delete_disk(kwargs['name'], kwargs.get('delete_vhd', False))
        return {'Success': 'The disk was successfully deleted'}
    except AzureMissingResourceHttpError as exc:
        raise SaltCloudSystemExit('{0}: {1}'.format(kwargs['name'], exc.message))
Gather BAM file alignment statistics using Picard
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/msazure.py/delete_disk--crossover with--dataset/ETHPy150Open CGATOxford/cgat/obsolete/mapping_titration.py/buildPicardAlignStats