# <um:removeUser> Tag

The <um:removeUser> tag removes the user corresponding to the provided username. It can remove any type of extended user that has its profileType set in the database. This tag has no enclosed body.

Execution of this tag requires the logged in user to have administrator rights.

Note: All User Management tags send results to the same file. If you are checking for results, include this import statement at the top of the page: <%@ page import="com.bea.p13n.usermgmt. servlets.jsp.tags.UserManagementTag- Constants" %>

## Syntax

<tagName attribute="value" />

## Attributes

username

Required (String) - The username of the user to be removed. Example: "<%=username%>".

result

Required (String) - The name of an Integer variable to which the result of the remove user operation is assigned.

Possible values:

- Success: UserManagementTagConstants.REMOVE_USER_OK.
- Error encountered: UserManagementTagConstants.REMOVE_USER_FAILED.

## Example

This example shows how to use <um:removeUser> to remove a user.

    <um:removeUser username="<%=username%>" result="result"/>

Related Topics

<um:removeUserFromGroup> Tag

<um:removeGroupFromGroup> Tag

<um:removeGroup> Tag