1.1.7/Public/remove-AllegisIDNIdentityAttribute.ps1

function remove-AllegisIDNIdentityAttribute ($orgName, $accessToken, $name){
    $header=get-AllegisIDNprivateHeader $accessToken
    $privateuribase="https://$orgname.identitynow.com"
    $url="$privateuribase/cc/api/identityAttribute/delete"
    $body=@()
    foreach ($item in $name){$body=$body + "attributeNames=$item"}
    $body=$body -join '&'
    $response=Invoke-WebRequest -Uri $url -Method Post -UseBasicParsing -Headers $header -Body $body -ContentType "application/x-www-form-urlencoded"
    $sourceIdentityProfile=$response.Content | ConvertFrom-Json
    return $sourceIdentityProfile
}