declare l_username varchar2(500) := '~logicalUser'; begin if l_username is not null and l_username <> chr(126) || 'logicalUser' then ~portalSchema.wwsec_api.delete_portal_user(p_user_name => '~logicalUser'); end if; exception when others then null; end;