Skip to main content

Delete applications

You can delete applications from your organization using the nullplatform UI, CLI, or API.

You must have an Admin or Developer role to delete applications.

You can delete an application directly from the Namespace view.
Open the options menu (⋮) next to the application you want to remove and select Delete.

Troubleshooting: I can't delete my application

You can't delete an application if it still owns any services or links, or has scopes associated with it.

To resolve this, you'll need to:

  1. Transfer ownership of links and services.
  2. Update where the service can be linked.
  3. Remove scopes associated with the application.

First, check what services or links the application owns:

  1. Go to Development > Services.
  2. Select the Owned by this application tab to see the services you need to transfer.

2. Change the owner

Once you've identified the service or link, update its owner by changing the entity_nrn to a different application. Use a PATCH request to services or links.

  • Update a service owner:

    np service patch \
    --id <SERVICE_ID> \
    --body '{
    "entity_nrn": "organization=1:account=1:namespace=1:application=2"
    }'
  • Update a link owner:

    np link patch \
    --id <LINK_ID> \
    --body '{
    "entity_nrn": "organization=1:account=1:namespace=1:application=2"
    }'

Replace the IDs and target NRNs with your own values.

Update the linkable_to property

After transferring ownership, you might also want to update the service's linkable_to property so it reflects the new relationships between applications.

  1. Decide which applications should be able to link to this service using their nrn values.
  2. Patch the service's linkable_to array to include the new application(s) and remove the old owner if needed.
np service patch \
--id <SERVICE_ID> \
--body '{
"linkable_to": [
"organization=1:account=1:namespace=1:application=2",
"organization=1:account=1:namespace=1:application=3"
]
}'

Remove scopes from your application

Next, remove all scopes associated with your application.

  1. Go to Development > Scopes.
  2. Click on Manage and select Delete for each scope.
note

If you're having problems deleting your scopes, see how to force delete misconfigured scopes.

Now try deleting your application again.