gui/backend/gui_plugin/users/UserManagement.py
def delete_profile(user_id, profile_id, web_session=None):
    """Deletes a profile for the current user.

    Args:
        user_id (int): The id of the user to which the profile belongs to.
        profile_id (int): The ID of the profile to delete.
        web_session (object): The webserver session object, optional. Will be
            passed in by the webserver automatically

    Returns:
        The generated shell request record.
    """
    with BackendDatabase(web_session) as db:
        if not backend.delete_profile(db, user_id, profile_id):
            raise MSGException(Error.USER_DELETE_PROFILE,
                               f"Could not delete any profile with the supplied criteria.")

    result = Response.fromStatus(db.get_last_status())

    return result
Deletes a profile for the current user.

    Args:
        user_id (int): The id of the user to which the profile belongs to.
        profile_id (int): The ID of the profile to delete.
        web_session (object): The webserver session object, optional. Will be
            passed in by the webserver automatically

    Returns:
        The generated shell request record.
    
Deletes a profile for the current user.
Deletes a profile for the current user .
def delete_profile(user_id, profile_id, web_session=None):
    with BackendDatabase(web_session) as db:
        if not backend.delete_profile(db, user_id, profile_id):
            raise MSGException(Error.USER_DELETE_PROFILE,
                               f"Could not delete any profile with the supplied criteria.")
    result = Response.fromStatus(db.get_last_status())
    return result
def delete_profile ( user_id , profile_id , web_session = None ) : with BackendDatabase ( web_session ) as db : if not backend . delete_profile ( db , user_id , profile_id ) : raise MSGException ( Error . USER_DELETE_PROFILE , f"Could not delete any profile with the supplied criteria." ) result = Response . fromStatus ( db . get_last_status ( ) ) return result
Deletes a profile for the current user.
Deletes a profile for the current user .
"""Deletes a profile for the current user.

    Args:
        user_id (int): The id of the user to which the profile belongs to.
        profile_id (int): The ID of the profile to delete.
        web_session (object): The webserver session object, optional. Will be
            passed in by the webserver automatically

    Returns:
        The generated shell request record.
    """
The generated shell request record.
The generated shell request record .
user_id
The id of the user to which the profile belongs to.
The id of the user to which the profile belongs to .
profile_id
The ID of the profile to delete.
The ID of the profile to delete .
web_session
The webserver session object, optional. Will be
passed in by the webserver automatically
The webserver session object optional . Will be passed in by the webserver automatically