agave-profiles/profiles-core/src/main/java/org/iplantc/service/profile/manager/InternalUserManager.java
/**
	 * This removes the internal user from the API user's directory of internal users,
	 * cancels any running jobs, and deletes their credentials on all the API user's
	 * systems.
	 * 
	 * @param currentUser
	 * @return
	 * @throws ProfileException, RemoteDataException
	 */
This removes the internal user from the API user's directory of internal users,
cancels any running jobs, and deletes their credentials on all the API user's
systems.


This removes the internal user from the API user ' s directory of internal users cancels any running jobs and deletes their credentials on all the API user ' s systems .
public void deleteInternalUser(InternalUser currentUser) 
	throws ProfileException 
	{
		try 
		{
			currentUser.setActive(false);
			currentUser.setLastUpdated(new Date());
			dao.persist(currentUser);
			NotificationManager.process(currentUser.getUuid(), "DELETED", currentUser.getCreatedBy());
		} 
		catch(Exception e) {
			throw new ProfileException("Failed to delete internal user.", e);
		}
	}
public void deleteInternalUser ( InternalUser currentUser ) throws ProfileException { try { currentUser . setActive ( false ) ; currentUser . setLastUpdated ( new Date ( ) ) ; dao . persist ( currentUser ) ; NotificationManager . process ( currentUser . getUuid ( ) , "DELETED" , currentUser . getCreatedBy ( ) ) ; } catch ( Exception e ) { throw new ProfileException ( "Failed to delete internal user." , e ) ; } }
This removes the internal user from the API user's directory of internal users,
 cancels any running jobs, and deletes their credentials on all the API user's
 systems.
This removes the internal user from the API user ' s directory of internal users cancels any running jobs and deletes their credentials on all the API user ' s systems .