# Delete Template - Documentation

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown is available with `Accept: text/markdown` and `.md` URL variants.

Source: /docs/api-reference/gpu-instance-delete-template

# Delete Template

POST

/

gpu-instance

/

openapi

/

v1

/

template

/

delete

Try it

Delete Template

cURL

```
curl --request POST \
--url https://api.novita.ai/gpu-instance/openapi/v1/template/delete \
--header 'Authorization: &#x3C;authorization>' \
--header 'Content-Type: &#x3C;content-type>' \
--data '
{
"templateId": "&#x3C;string>"
}
'
```

200

```
{
"templateId": "&#x3C;string>"
}
```

##

[​](#request-headers)

Request Headers

[​](#param-content-type)

Content-Type

string

required

Enum: `application/json`

[​](#param-authorization)

Authorization

string

required

Bearer authentication format, for example: Bearer {{API Key}}.

##

[​](#request-body)

Request Body

[​](#param-template-id)

templateId

string

required

The ID of the template to be deleted.

##

[​](#response)

Response

[​](#param-template-id-1)

templateId

string

The ID of the deleted template.

##

[​](#example)

Example

Request

```
curl --request POST \
--url 'https://api.novita.ai/gpu-instance/openapi/v1/template/delete' \
--header 'Authorization: Bearer {{API Key}}' \
--header 'Content-Type: application/json' \
--data '{
"templateId": ""
}'
```

Response

```
{
"templateId": ""
}
```

Last modified on December 23, 2024
