.. versionadded:: 2018.3.0

    Provide information if the path is mounted

    CLI Example:

    .. code-block:: bash

        salt '*' mount.delete_mount_cache /mnt/share

def delete_mount_cache(real_name):
    '''
    .. versionadded:: 2018.3.0

    Provide information if the path is mounted

    CLI Example:

    .. code-block:: bash

        salt '*' mount.delete_mount_cache /mnt/share
    '''
    cache = salt.utils.mount.read_cache(__opts__)

    if cache:
        if 'mounts' in cache:
            if real_name in cache['mounts']:
                del cache['mounts'][real_name]
                cache_write = salt.utils.mount.write_cache(cache, __opts__)
                if not cache_write:
                    raise CommandExecutionError('Unable to write mount cache.')
    return True