# com.publicdomainrelay.temp.gateway.deleteCompute

> Published by [johnandersen777.bsky.social](https://lexicon.garden/identity/did:plc:5svqtrhheairglgiiyvutzik)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:5svqtrhheairglgiiyvutzik/com.publicdomainrelay.temp.gateway.deleteCompute)
- [Documentation](https://lexicon.garden/lexicon/did:plc:5svqtrhheairglgiiyvutzik/com.publicdomainrelay.temp.gateway.deleteCompute/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:5svqtrhheairglgiiyvutzik/com.publicdomainrelay.temp.gateway.deleteCompute/examples)

## Definitions

### `com.publicdomainrelay.temp.gateway.deleteCompute`

**Type**: `procedure`

Tear down a compute resource identified by its receipt. Gateway submits a market.event with a compute.events.vm.delete payload to the winning bidder.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `receiptCid` | `string` (cid) | Yes | CID of the receipt record. |
| `receiptUri` | `string` (at-uri) | Yes | AT-URI of the receipt record from the winning bidder. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `ok` | `boolean` | Yes |  |
| `error` | `string` | No |  |

#### Errors

- **InvalidRequest**
- **AuthRequired**
- **NotFound**

## Raw Schema

```json
{
  "id": "com.publicdomainrelay.temp.gateway.deleteCompute",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "receiptUri",
            "receiptCid"
          ],
          "properties": {
            "receiptCid": {
              "type": "string",
              "format": "cid",
              "description": "CID of the receipt record."
            },
            "receiptUri": {
              "type": "string",
              "format": "at-uri",
              "description": "AT-URI of the receipt record from the winning bidder."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "AuthRequired"
        },
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "ok"
          ],
          "properties": {
            "ok": {
              "type": "boolean"
            },
            "error": {
              "type": "string"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Tear down a compute resource identified by its receipt. Gateway submits a market.event with a compute.events.vm.delete payload to the winning bidder."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
