Accelerate the Value of Data

Deleting Lookups in a Tenant

This task enables you to delete lookups in a tenant.

Important: All lookups in a tenant will be removed if you run the task without the parameters.

To delete the lookups in a tenant, use the parameters listed in Table 1: Parameters to Delete Lookups in a Tenant.

Table 1. Parameters to Delete Lookups in a Tenant
Parameter Name Mandatory Type Description
type No String Indicates the type of lookups to be deleted. If the parameter is not set, all the lookups will be deleted.

This is an optional parameter.

uris

No

Array Defines the list of lookup URIs to delete.

Example: Remove all lookups in a tenant


POST https://{{rdm-service}}/tasks/{{tenantId}}
Authorization: Bearer {{token}}
{
  "type": "delete"
}

Example: Remove lookups of certain lookup types only


POST https://{{rdm-service}}/tasks/{{tenantId}}
Authorization: Bearer {{token}}
{
  "type": "delete",
  "parameters": {
    "type": "rdm/lookupTypes/Country"
  }
}

Example: Remove lookups by their URIs


POST https://{{rdm-service}}/tasks/{{tenantId}}
Authorization: Bearer {{token}}
{
  "type": "delete",
  "parameters": {
    "uris": [
      "rdm_tenant_id/Country/CA",
      "rdm_tenant_id/Country/USA",
      "rdm_tenant_id/Country/CZ"
    ]
  }
}