# deleteReplicas {#deletereplicas}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`deleteReplicas(chunkId, nodeAlias)`

## Arguments {#arguments}

**chunkId** is a STRING scalar/vector indicating ID of chunks.

**nodeAlias** is a string indicating the node alias.

## Details {#details}

Delete replicas of one or multiple chunks from a node.

This command can only be executed by an administrator on a controller node.

## Examples {#examples}

Delete the replicas of all chunks on "node1".

```
chunkIds=exec chunkId from pnodeRun(getAllChunks) where node="node1"
deleteReplicas(chunkIds,"node1");
```

