---
url: /process-functions/alias-createorwipe.md
description: >-
  Creates an alias within a dimension if it doesn't exist, or wipes the data on
  the alias if it already exists.
---

# alias.createOrWipe

Creates an alias within a dimension if it doesn't exist, or wipes the data on the alias if it already exists.

```js
alias.createOrWipe(dimension, aliasName); 
```

#### Parameters

* `dimension` - The dimension in which to create an alias.
* `aliasName` - The identifier of the alias created.

#### Example

```js
alias.createOrWipe("Account", "No - Name");
```
