---
title: "Destroy P2P instance"
method: DELETE
path: "/instance"
tags: ["instances"]
---

# Destroy P2P instance

`DELETE /instance`

## Request

- Base URL: `http://localhost/v1`
- URL: `http://localhost/v1/instance`
- Auth: none declared
- TypeScript: <https://skmtc.dev/subutai-io/apis/subutai-p2p/docs/instance/delete.ts> (a function with typed inputs; its response is checked against the schema)

This command will shutdown P2P instance

## Query parameters

- `hash` Instance, required
  - `hash` string
  - `interface` Interface
    - `name` string
    - `ip` string
    - `mac` string
  - `port` string: Specific UDP port or port range [from-to]
  - `key` Key
    - `key` string
    - `keyfile` string
    - `until` string

## Response `200`

Sucessfully created

## Other responses

- `400`: Bad request
- `503`: Service unavailable

## Changes

- **2026-07-17** `9160372d4103`: 1 breaking
  - for the `query` request parameter `hash`, the type of property `interface` was specialized from `string` to `object`
- **2018-04-16** `50f5b2633e9c`: 2 info
  - added the non-success response with the status `400`
  - removed the non-success response with the status `405`
- **2018-04-11** `64b8b394694a`: 1 info
  - endpoint added
- **2018-03-26** `19a991c3ee7b`: 1 breaking
  - api removed without deprecation

[Operation history](https://skmtc.dev/subutai-io/apis/subutai-p2p/changes/instance/delete.md)

---

[API](https://skmtc.dev/subutai-io/apis/subutai-p2p.md) - [All operations](https://skmtc.dev/subutai-io/apis/subutai-p2p/llms.txt) - [OpenAPI document](https://skmtc.dev/subutai-io/apis/subutai-p2p/revisions/9160372d4103?raw)
