//delete user tags
String userId = user.getUserId();
List<TagInode> userTagsList = TagFactory.getTagInodeByInode(String.valueOf(userProxy.getInode()));
for (TagInode tag : userTagsList) {
Tag retrievedTag = TagFactory.getTagByTagId(tag.getTagId());
TagFactory.deleteTagInode(tag);
TagFactory.deleteTag(retrievedTag.getTagId());
}
// deletes user proxy
InodeFactory.deleteInode(userProxy);
// deletes liferay user
APILocator.getUserAPI().delete(APILocator.getUserAPI().loadUserById(token,APILocator.getUserAPI().getSystemUser(),false),com.dotmarketing.business.APILocator.getUserAPI().getSystemUser(), false);