A function to connect to a bigip device and delete an existing profile.

    hostname
        The host/address of the bigip device
    username
        The iControl REST username
    password
        The iControl REST password
    profile_type
        The type of profile to delete
    name
        The name of the profile to delete

    CLI Example::

        salt '*' bigip.delete_profile bigip admin admin http my-http-profile

def delete_profile(hostname, username, password, profile_type, name):
    '''
    A function to connect to a bigip device and delete an existing profile.

    hostname
        The host/address of the bigip device
    username
        The iControl REST username
    password
        The iControl REST password
    profile_type
        The type of profile to delete
    name
        The name of the profile to delete

    CLI Example::

        salt '*' bigip.delete_profile bigip admin admin http my-http-profile

    '''

    #build sessions
    bigip_session = _build_session(username, password)

    #delete to REST
    try:
        response = bigip_session.delete(BIG_IP_URL_BASE.format(host=hostname)+'/ltm/profile/{type}/{name}'.format(type=profile_type, name=name))
    except requests.exceptions.ConnectionError as e:
        return _load_connection_error(hostname, e)

    if _load_response(response) == '':
        return True
    else:
        return _load_response(response)