---
title: "🔒 Удаление (архивация) программного модуля."
method: GET
path: "/projects/module/delete"
tags: ["Projects: Modules"]
---

# 🔒 Удаление (архивация) программного модуля.

`GET /projects/module/delete`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/projects/module/delete`
- Auth: one of:
  - API key in header `sid` and API key in header `rts` and API key in header `sig`
  - HTTP bearer

Удаление (архивация) программного модуля.

**Access:** `authorized` (10 ) · **Scope:** `write`

**Allows:** `product:structure` (все обязательны; ресурс — `ID (module)`)

### TypeScript (copy-paste)

**`GET /projects/module/delete`**

<details open><summary><b>Params</b></summary>

```typescript
export interface ProjectsModuleDeleteParams {
  ID: string
  path_key: string
  path_title: string
}
```

</details>

<details open><summary><b>Response</b></summary>

```typescript
export type ProjectsModuleDeleteResponse = IServerResponse<Resp_projects_module_delete>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
```

</details>

> Полный файл типов: [`/docs/types`](/docs/types) · raw: [`/docs/api-types.ts`](/docs/api-types.ts)

## Query parameters

- `ID` string, uuid, required
- `path_key` string, required
- `path_title` string, required

## Headers

- `devID` string, uuid, required
- `tz` string, required
- `app` string, required
- `appVer` string, required
- `rKey` string

## Response `200`

OK — `IServerResponse<Resp_projects_module_delete>`

- object
  - `code` integer, required
  - `data` RespProjectsModuleDelete, required: ResponseData for projects/module/delete
    - `updated` Module[], required
      - `cID` string, uuid, required
      - `projectID` string, uuid, required
      - `productID` string, uuid, required
      - `parentID` string, uuid, nullable
      - `ID` string, uuid, required
      - `ord` integer, required: Unix timestamp in milliseconds
      - `title` string, required
      - `desc` string, required
      - `components` object, required
      - `ver` integer, required
      - `designID` string, uuid, nullable
      - `path` object, nullable
        - `key` string, required
        - `title` string, required
      - `isDeleted` boolean, nullable
      - `deletedTS` integer, nullable: Unix timestamp in milliseconds
      - `updTS` integer, required: Unix timestamp in milliseconds
      - `updUID` string, required
  - `srvTS` integer, required: Server timestamp (ms)
  - `rkey` string, required: Request key

## Other responses

- `400`: BadRequest / Validation — неверные params/body/headers
- `401`: Unauthorized: Active user session required
- `403`: AccessNotAllowed: Privilege product:structure required
- `404`: NotFound: Module with specified ID does not exist
- `406`: TimeResync — расхождение rts с сервером

---

[API](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api.md) · [All operations](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/revisions/a143b51ba29a?raw)
