# rc.archiveProject

> The API Reference is also the SDK and CLI reference. Consecutive code fences marked `tab=HTTP`, `tab=Node`, `tab=Python` and `tab=CLI` are the same call on each surface (a fence marked `tab=HTTP,CLI` is the same text for both), and a block between `:::surface <names>` and `:::` applies only to the surfaces it names. Identifiers in the text are written as in Node and in HTTP JSON (camelCase); the Python SDK spells methods, parameters and result attributes in snake_case (`sendMessage` → `send_message`, `reconnectionLink` → `reconnection_link`), while names inside HTTP JSON stay camelCase.

Archive a LinkedIn Recruiter Lite project. Recruiter Lite has no way to delete a project, so archiving is how you retire one: an archived project no longer appears in [rc.retrieveProjects](/docs/action-rc-retrieve-projects).

The account needs a Recruiter Lite seat, Linked API's Plus plan and a [supported LinkedIn interface language](/docs/recruiter-lite-overview#seat-requirements) – see [Recruiter Lite](/docs/recruiter-lite-overview).

:::surface node,python
In the SDK this is the `rcArchiveProject` method. It takes the parameters below except `label`, which exists only in workflow JSON, and returns the result below in `data`.
:::

:::surface cli
The command is `linkedin recruiter projects archive`. Its argument is listed below.
:::

## Constraints

> ⏺️ **Root Start:** allowed.

> ⬆️ **Parent Actions:** N/A.

> ⬇️ **Child Actions:** N/A.

## Parameters

```json tab=HTTP
{
  "actionType": "rc.archiveProject",
  "label": "archive1",
  "projectId": "1700000002"
}
```

```typescript tab=Node
const workflow = await linkedapi.rcArchiveProject.execute({
  projectId: "1700000002"
});

const { data, errors } = await linkedapi.rcArchiveProject.result(workflow.workflowId);
```

```python tab=Python
from linkedapi import RcArchiveProjectParams

workflow = linkedapi.rc_archive_project.execute(
    RcArchiveProjectParams(
        project_id="1700000002",
    )
)

result = linkedapi.rc_archive_project.result(workflow.workflow_id)
```

```bash tab=CLI
linkedin recruiter projects archive 1700000002 --json
```

In AI assistants, the MCP tool is `rc_archive_project`. The n8n action is **Archive project in Recruiter Lite**; the Make module is **Archive Project in Recruiter Lite**.

| Parameter | Description |
| --- | --- |
| `label` | Optional. Label included in workflow completion. |
| `projectId` | Required. Project ID, a string of digits, from [rc.retrieveProjects](/docs/action-rc-retrieve-projects) or [rc.createProject](/docs/action-rc-create-project). |

:::surface cli
| Arg | Required | Description |
| --- | --- | --- |
| `project-id` | yes | Project ID, from `linkedin recruiter projects` or `linkedin recruiter projects create` |
:::

## Archiving behaviour

- **Already archived.** If the project is already archived, nothing is clicked and the result has `alreadyArchived` set to `true`. Calling again is safe.
- **Confirmed.** Otherwise the action archives the project from its settings page, confirms Recruiter's prompt, and requires the project to show as archived.

## Result options

1. **Successful archiving:**

```json
{
  "actionType": "rc.archiveProject",
  "label": "archive1",
  "success": true,
  "data": {
    "alreadyArchived": false
  }
}
```

| Field | Meaning |
| --- | --- |
| `alreadyArchived` | `true` if the project was already archived and nothing was changed; `false` if this call archived it. |

`label` is included only if specified in the action parameters.

2. **Failed archiving:**

```json
{
  "actionType": "rc.archiveProject",
  "label": "archive1",
  "success": false,
  "error": {
    "type": "projectNotFound",
    "message": "The Recruiter project could not be opened or no longer exists."
  }
}
```

Possible `error.type` values:

- `projectNotFound` – the seat cannot open a project with this ID: Recruiter answers with its page-not-found. Nothing was changed.
- `recruiterSignInRequired`, `recruiterTwoStepVerificationRequired`, `recruiterMultipleSessionsDetected` – the seat needs attention, see [account errors](/docs/recruiter-lite-overview#account-errors).
- `unexpectedError` – the project could not be archived, or Recruiter did not confirm it. LinkedIn's [other warning screens](/docs/recruiter-lite-overview#other-warning-screens) end here too, so check Recruiter in the account's cloud browser before you call again. For an archived project, `alreadyArchived` is `true`.
