---
id: service-specification-delete
title: "Delete a service specification"
description: "Delete a service specification"
sidebar_label: "Delete a service specification"
hide_title: true
hide_table_of_contents: true
api: eJztWVtvG7kV/isEUaBJO5btoH3oFEWhtbVZb7y2YdnJolpVpoZHGm5myAnJsaMK+u/FITk3aWTZiwD7snmJzMu5fufGWVNVgGZWKHnBaUwN6EeRwMwUkIiFSNxOzCEDCzSili0NjSd07I/RaUQ5mESLAs/RmJ67k4SRQIh0CNGIFkyzHCxopLOmJkkhZzReUytsBjSmFxz5rAr8bawWckkjulA6Z5bGtCwF7neZ3kvxpQQiOEgrFgI0WShNbAoEF+yKaCg0GJAWOGGGMHJ/f3FONxEVeL1gNqURlSxHno6+hi+l0MBpbHUJm2lEDSSlFnblpJ4D06CHpU1pPJnitgZTKGnAoCrvfv4Z/+sKeT3/FRLbiCLkst9IhkY0UdKCtEiFFUUWdo5/NUiqYzVvKOWIo3k1+tMKL4jgv5tlvTXXO/xyIS9BLtFypxGVyukIssxpPJFllk032zJcsRyIWrS4DshPpbFkjjiTSh5BXtgV8SwIk5xIZQl8KVlGrCJIFSUyWbn8NhKNs3JZSdRx3YAMS6tyZkXCsmxFliAxuICThVY5+cVZ5ReK0iQacGPGbJ9MtVc4s4DHy4K/5vijMGKewcyqNgA+4qrIEMU1EJjWbLXj9yGudrH6WF8mBiwumS0wDMjYGwMMeUqZPX5KFUmYJAaA2FSYcI5GVFjITVu0q9urHnAWzFrQKNB/lV4yKf7nzPyvycnRP/4y/eubmCWJKqWtFt7++02MJjYFS6C92Aqi9rJJVNE696cdO1yVWVZkzKKByS0YVeoEiEPkm6vbq7ddEzGSCtBMJyn6fztqZJuWDrQM3WwiyqzVYl5a6NhkWK02ltkT5/vzAYcFKzMEzS6K28it4FxLQjzNdqg9skxw8uP4+oqMPUNEGsvKIPbLWX90lwgzRiXCxceTsGlXgMDZMWVYUpZMSGNJodWj4MCDgM5+TbqeVLaoJZvWxlqh30wruvvObsVBlqkn4KSiQBy6UG/GucBDLLtpuWLBM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ro8DpaPsdqT3hTmhnOjytx8JTGu3beufyaaclAfkotJJ5eHjpvgE1vcEE6yovkyCIsWyJEbFV09t1ubn5W+onxteRWhyx2gZHjs2WSXwJ6haZUEu64+VLH4/y1cwH+6zKNj39T4THfLfbdyz0wa3e+2R7XuthM213Yhv/L6J/63tV+95lIRdOHYCC1kobwkv3JjS8uSBCWtBVKXvNC1sA7QgpHp7ELbOlOVMc+q3Qlv2Hu7sb4i+QRHGsF9zJEZKA08FNUF1ydQrufatztzw9b5UFaMAMgTUnDE8hHJC2Z3KQ+DhV2kYkLXMmjzQwjhgLvFwFRZ7VZIaoAGPY8gVSn4NlIgMeaIV7Ycp3k3KdUYjz2Vfbk6N+Mww6LweN7yq7NIpMPQj//gcI/wDh7wtCp5hNFX6uqT/MuG8YMT3u/X5zvBZ8g6UK9GP14aXUGY1pam1h4uNjVohBuwUdJCqn7c8e7sHPo6v98aM2LBJykwoeww7ZHaJR+PF91Sz++OnOWU7IhRuCUB5vvdPByeCENk1C5+l1eHPhOlJlbM5kq0M4+L2p46J1E3GHbwbN0NnHRcaEQ6oz2zqYe9L/uYxGNBYc+4tUGYvH1us5M3Cvs80Gl7+UgO9XkymWOS181zxZUy4M/ub974ht4d/cBsi8JfskrYZ81wG4akpjSiP6GVb+K5ebe1NgrkmZrMPGMMFJqHVlJzEhLGoAno8uR3c4p7MuHrb8335U6Eq0XvsTd+ozyM2mFtDi3yjjZvN/ZHUQTA==
sidebar_class_name: "delete api-method"
info_path: docs/api/nullplatform-api
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 a service specification"}
>
</Heading>

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



Delete a service specification

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

<ParamsDetails
  parameters={[{"schema":{"title":"Id","type":"string","format":"uuid","description":"Unique identifier for the entity represented as a UUID"},"in":"path","name":"id","required":true}]}
>
  
</ParamsDetails>

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

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"2XX":{"description":"Object representing service specifications","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"title":"Id","type":"string","format":"uuid","description":"Unique identifier for the entity represented as a UUID"},"name":{"type":"string","minLength":1,"not":{"enum":[null]},"description":"Name of the entity. Must be a non-empty string and not equal to null"},"slug":{"type":"string","minLength":1,"not":{"enum":[null]},"description":"Slug of the specification. Automatically generated from \"name\""},"created_at":{"type":"string","format":"date"},"updated_at":{"type":"string","format":"date"},"visible_to":{"title":"Visibility","type":"array","description":"Array representing visibility settings for the entity. Specifies what/who can see this entity","items":{"title":"NRN","type":"string","pattern":"^organization=[0-9*]+(:account=[0-9*]+)?(:namespace=[0-9*]+)?(:application=[0-9*]+)?(:scope=[0-9*]+)?$","description":"Nullplatform Resource Name (NRN) representing a hierarchical identifier for nullplatform resources"}},"attributes":{"title":"Attribute","type":"object","properties":{"schema":{"type":"object","default":{},"description":"Specification of the attribute schema. Must be a valid JSON Schema"},"values":{"type":"object","default":{},"description":"Values associated with the attribute. Must validate against provided schema"}},"required":["schema","values"],"propertyNames":{"enum":["schema","values"],"description":"Allowed property names"},"additionalProperties":false,"description":"Object representing an attribute with a schema and associated values"},"selectors":{"title":"Selector","type":"object","properties":{"imported":{"type":"boolean","default":false},"provider":{"type":"string","minLength":1,"maxLength":100,"default":"any"},"category":{"type":"string","minLength":1,"maxLength":100,"default":"any"},"sub_category":{"type":"string","minLength":1,"maxLength":100,"default":"any"}},"additionalProperties":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"description":"Key-value object representing instance selectors"},"type":{"type":"string","enum":["dependency","scope"],"description":"Type of the service specification. Should be one of the specified values in the enumeration"},"dimensions":{"title":"Specification Dimension","type":"object","properties":{},"additionalProperties":{"type":"object","properties":{"required":{"type":"boolean"},"values":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["required"]}},"scopes":{"title":"Specification Scope","type":"object","properties":{"provider":{"type":"object","properties":{"values":{"type":"array","items":{"oneOf":[{"type":"string","enum":["AWS:SERVERLESS:LAMBDA","AWS:WEB_POOL:EC2INSTANCES","AWS:WEB_POOL:EKS","AZURE:WEB_POOL:AKS","GOOGLE:WEB_POOL:GKE","OCI:WEB_POOL:OKE"]},{"type":"string","format":"uuid","description":"UUID of a scope specification"}]},"minItems":1}},"additionalProperties":false,"required":["values"]}},"additionalProperties":false},"assignable_to":{"type":"string","enum":["any","dimension","scope"],"description":"Specifies if the service can be assigned to any entity, only dimensions, or only scopes."},"use_default_actions":{"type":"boolean","description":"Specifies if the service specification should autogenerate its create, update, and delete actions from the attributes schema. When omitted on create, the default is true for every type except `scope`"},"use_default_naming":{"type":"boolean","description":"When true, the instance name is optional and generated by nullplatform or taken from the schema's `name` property. When false, a caller-provided name is required. Defaults to true for new specifications"},"package_id":{"type":"string","format":"uuid","nullable":true,"description":"The package that owns this service specification. Set automatically when a package revision that includes the specification is published; a specification belongs to at most one package. `PATCH` can point it at another package or clear it with `null` to release the claim, for example after deleting the package. The change is refused while any instance of the specification is bound to a package revision, current or desired"}},"description":"Object representing service specifications","additionalProperties":false,"title":"ServiceSpecification","example":{"name":"my-service-specification","visible_to":["organization=1:account=1","organization=1:account=2"],"dimensions":{"environment":{"required":true,"values":["production","staging"]}},"scopes":{"provider":{"values":["AWS:SERVERLESS:LAMBDA","AWS:WEB_POOL:EC2INSTANCES","uuid-of-a-specific-scope-specification"]}},"assignable_to":"any","attributes":{"schema":{"type":"object","properties":{"my_string_property":{"type":"string"},"my_number_property":{"type":"number","default":0}},"required":["my_string_property"]},"values":{}}}}}}},"4XX":{"description":"Format for representing errors during API interactions","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code indicating the error"},"code":{"type":"string","description":"Unique error code for reference and categorization"},"error":{"type":"string","description":"Short, human-readable error type or category"},"message":{"type":"string","description":"Detailed error message providing additional context"}},"description":"Format for representing errors during API interactions","required":["statusCode","error","message"]}}}},"5XX":{"description":"Format for representing errors during API interactions","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code indicating the error"},"code":{"type":"string","description":"Unique error code for reference and categorization"},"error":{"type":"string","description":"Short, human-readable error type or category"},"message":{"type":"string","description":"Detailed error message providing additional context"}},"description":"Format for representing errors during API interactions","required":["statusCode","error","message"]}}}}}}
>
  
</StatusCodes>


      