huskar_api/api/user.py
def delete(self, username):
        """Deletes an user permanently with your site admin authority.

        :param username: The username of deleting user.
        :<header Authorization: Huskar Token (See :ref:`token`)
        :status 404: The user is not found.
        :status 200: The user is deleted successfully.
        """
        g.auth.require_admin('only admin can delete users')

        user = self._get_user_or_404(username)
        with audit_log(audit_log.types.ARCHIVE_USER, user=user):
            user.archive()
        return api_response()
Deletes an user permanently with your site admin authority.

        :param username: The username of deleting user.
        :<header Authorization: Huskar Token (See :ref:`token`)
        :status 404: The user is not found.
        :status 200: The user is deleted successfully.
        
Deletes an user permanently with your site admin authority.
Deletes an user permanently with your site admin authority .
def delete(self, username):
        g.auth.require_admin('only admin can delete users')
        user = self._get_user_or_404(username)
        with audit_log(audit_log.types.ARCHIVE_USER, user=user):
            user.archive()
        return api_response()
def delete ( self , username ) : g . auth . require_admin ( 'only admin can delete users' ) user = self . _get_user_or_404 ( username ) with audit_log ( audit_log . types . ARCHIVE_USER , user = user ) : user . archive ( ) return api_response ( )
Deletes an user permanently with your site admin authority.
Deletes an user permanently with your site admin authority .
"""Deletes an user permanently with your site admin authority.

        :param username: The username of deleting user.
        :<header Authorization: Huskar Token (See :ref:`token`)
        :status 404: The user is not found.
        :status 200: The user is deleted successfully.
        """
self
username
The username of deleting user.
The username of deleting user .
<header
Huskar Token (See :ref:`token`)
Huskar Token ( See : ref : ` token ` )
status
The user is not found.
The user is not found .
status
The user is deleted successfully.
The user is deleted successfully .