---
id: nrn-delete
title: "Delete namespaces or profiles"
description: "Removes all keys within a specified set of namespaces and/or profiles. By default, this endpoint acts on a single NRN entry and does not affect the entire hierarchy. Use the `include_parents` query parameter to modify this behavior."
sidebar_label: "Delete namespaces or profiles"
hide_title: true
hide_table_of_contents: true
api: eJztV11uGzcQvsqAD0VibCQlsV8EOIWTuKiLIjAcGwlgGTZFzmqZcMktOatEEXSGvvepx+h5eoFeoRjuSlpLttMGSRsU1cNK4vLnm4/fNxzOhcaogqnIeCeG4gRLP8UI0lp4i7MI7wwVxoGEWKEyuUENEQl8Dk6WGCupuLfTfR+gCj43FmMPns5AYy5rSxlQYSKg05U3jkAqiuDThMZNLMKLkxeAjsKMZwHtMYLzBDLPURFQgfzWBITCYJBBFbMenEVMb66MU7bWeFnJgI7iFfxUY5hBJYMskTAAeSi9NvmsgTHGQk6ND72RG7knI/cEfv/l1z9++xl2dp5jFVBJ5oEBGIU7O22fUx7qKwzN29JMCoIxQkhkaTAuoclrqgP24BW/Ub4s0WmoOUw4Pw5+ajSGeHGvr72K/WrZ0PdTDFOD7+6DcZFQ6p7IxGq1Iy2GwgU31GiRUGRiFVwUw/O54G1ouohMGN7DSlIhMhHwp9oE1GJIocZsY6NPi4Z68tDMzKtGVWApxXAuaFbxrJGCcROxyAS+l2Vluc2HiXTmQ0K3/3AolfK1o/1Hw5Ug9h8PZVVZ07C5vysW2byBlrZHZCvQKwndvfg6lFzauBXLATDb8kFE5oZQgzVxU6PkecuaWBPF64j6Lrj+bWF9u55jP/oS2Q6TTDpPBYb059bwln74QsEtp//00JYz7GucovVViY4ywkh3RbXhuZuCG3tvUbIg2yzQxvbxaB/AUQ5X6dVV1hosJnettgG8szNOIcnRzmvswcg1A1npt47Lgy+7CWUcpFMFM8mN6/Qycp+Jwm82qNpneGJxkQmSE3aveHHyQlxkIqKqg6FZMvQYZcBwUFMhhucX3DtgrLyLGJniR4Nd/tp28zpBvZMRYq0UxpjXtsci2339envUM2vQEWAIPsBqEdA1sqSMm0prOLtVNYEPUJqYktk6AbHWlHeEjnj2jun7byIvMd/Whh+/QUXX8tO5iCSpjs+85gSX8IhMlBijnCATVAWOjkxDQaf3el7jCCcYxKaivj89PYZmBCivOTdXASNrwE3SzrcnmwLV5eMe9ia9DHYHA3485Mdjfuzev+aw3cFgwSRcw9Kae9vKpVSFcfggoNRybLFdK+GiQhIoSTjxwXxo1RsxTDFALo3ls+WaMMdSXzKJGCll6ETbXwAxDgbzDIq6lG6NpNNraYkGHE+3ZGMknkoNJ82iI8ENZ07WVCTIeiSuk9PtzRCXO/pxkFob/iktaCRpbAQ59jWtYV1fh/XfUpHUX0qb+1CihsSuI2lcOqgbSXcVvEifTOzd5JCXDf2bDjFOJ527CUgHJsYam4SEcHB8BNFo/I9ZI3aJaMWwx9bYGzzix+PrG7/377mCgw1O2sum02VD2T/mj6N2eWilc8h9Gqdwi1EIZ05OpbE865Zhbhz+Ra1z4KB2+L5CxbVFE5JXqg4BdQ+OLUoutrk8n0jjwErCsHRNwkWF5xq1U5/yydUcm3MX3IIrhBRNU7DWwYqhKIiqOOz3ZWV6rra2spLYsj3ly3RELs/El+ySRtzdk3FFA0+0rEFSVkydRNb++M6HUpIYih9enQoGbFzueTjjaRh72Bv0BiITZCgxwofyIhOVj1TK5NS28nmeQuwWlZ1Lz+ZGzNf2//9W9ZXcqlrJEL6nfmWlcbzPSY/zVrbn7UVqyF8XmSh8JG6dz8cy4lmwiwU3NyUxq1mbyEa+pZ7tiuDTbik3Qn6Ls83b01Tamjumsv1zgLr9dnEHpI4ZPhHQV3MBuCPK7RvQOtgL/hMMR/s39XHvpD3178ONl/MbAbWN0s26KFYKCU4sLhaZKFBqDAlQ8+ZAKayoM2arQOFIVsn9+eGPh6eHIhPyevLdSLZpgRshzedNj1P/Ft1isUJI/J8xLhZ/Ak1VfxE=
sidebar_class_name: "delete api-method"
info_path: docs/api/nrn
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Delete namespaces or profiles"}
>
</Heading>

<MethodEndpoint
  method={"delete"}
  path={"/nrn/{nrn}"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Removes all keys within a specified set of namespaces and/or profiles. By default, this endpoint acts on a single NRN entry and does not affect the entire hierarchy. Use the `include_parents` query parameter to modify this behavior.

>
> ⚠️ **Deprecation notice**
>
> This operation might be removed in the future. We recommend using [Providers](/docs/providers/overview) instead.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"name":"nrn","in":"path","required":true,"description":"The NRN to delete.","schema":{"type":"string"},"example":"organization=1:account=2:namespace=3:application=4"},{"in":"query","name":"namespaces","schema":{"type":"string"},"required":false,"description":"A comma-separated list of namespaces to be deleted.","example":"/nrn/organization=1:account=2?namespaces=something,anotherthing"},{"in":"query","name":"profiles","schema":{"type":"string"},"required":false,"description":"A comma-separated list of profiles to be deleted.","example":"/nrn/organization=1:account=2?profiles=development,testing"},{"in":"query","name":"include_parents","schema":{"type":"boolean","default":false},"required":false,"description":"- If `false`, removes the namespace only on this node. \n- If `true`, removes the namespace from the entire branch of the hierarchy.\n","example":"/nrn/organization=1:account=2?profiles=development,testing&include_parents=true"}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"204":{"description":"The operation was successful."},"4XX":{"description":"Client error responses due to invalid input or missing parameters.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific client error (e.g., 400, 401, 403, 404).","example":400},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"bad_request"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Bad Request\", \"Unauthorized\").","example":"Bad Request"},"message":{"type":"string","description":"Additional details about the error.","example":"The request was malformed or contained invalid parameters."}}}}}},"5XX":{"description":"Server error responses indicating an issue on the API side.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific server error (e.g., 500, 502, 503).","example":500},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"internal_server_error"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Internal Server Error\", \"Service Unavailable\").","example":"Internal Server Error"},"message":{"type":"string","description":"Additional details about the error.","example":"An unexpected error occurred. Please try again later."}}}}}}}}
>
  
</StatusCodes>


      