# prepare_delete_project

**Prepare empty marketplace project deletion** · Changes data

Prepare deletion of exactly one owned empty marketplace project.

- Any keyword or ASIN attachment refuses `project_not_empty`; never detach them automatically.
- The exact preview discloses retained note and ranking/cache loss, remaining siblings and final-group slot release.
- Show it and wait for explicit user confirmation before `execute_removal`.

**Cost and limits:** Preparation changes no business data and is uncharged.

## Input

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `project_id` | `integer` | Required | A marketplace project ID: `list_projects` `data.projects[].marketplaces[].project_id`, not a project group. Minimum 1. Maximum 2147483647. |

## Output

Read this object from the result's `structuredContent`. The result's `content` carries a text version for the model, which is not always the same JSON.

Fields of `data`:

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `plan_reference` | `string` | Required | Pattern `^[A-Za-z0-9_-]{43}$`. |
| `operation` | `string` | Required |  |
| `expires_at` | `string (date-time)` | Required |  |
| `targets` | `object[]` | Required |  |
| `consequences` | `object[]` | Required |  |
| `instructions` | `string` | Required |  |


<details>
<summary>Full input and output JSON Schema</summary>

```json
{
  "inputSchema": {
    "type": "object",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
      "project_id": {
        "type": "integer",
        "minimum": 1,
        "maximum": 2147483647,
        "description": "A marketplace project ID: list_projects data.projects[].marketplaces[].project_id, not a project group."
      }
    },
    "required": [
      "project_id"
    ],
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "data"
    ],
    "properties": {
      "data": {
        "type": "object",
        "required": [
          "plan_reference",
          "operation",
          "expires_at",
          "targets",
          "consequences",
          "instructions"
        ],
        "properties": {
          "plan_reference": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          },
          "operation": {
            "type": "string"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "targets": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "consequences": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "instructions": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

</details>
