---
title: "admArchiveProjectVersion"
canonical: "https://support.appfire.com/space/PSJ/15487773/admArchiveProjectVersion"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admArchiveProjectVersion(projectKey, versionName, archive) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | archiveVersion(projectKey, versionName, archive) |

## Description

> Macro (excerpt)
> 
> Returns empty string(not relevant).

Returns empty string (not relevant).

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| projectKey | String | Yes | Project key. |
| versionName | String | Yes | Version name. |
| archive | Boolean (true/false) | Yes | Flag for archive(true) or unarchive(false). |

## Return Type

**String**

The return type doesn't have a meaning.

> ⚠️ 1. If projectKey or versionName is empty, an error will be raised.
> ⚠️ 2. If project or version does not exist, an error will be raised.

## See also

> Macro (contentbylabel)