# pop! {#pop}

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

## Syntax {#syntax}

`pop!(X)`

## Arguments {#arguments}

**X** is a vector.

## Details {#details}

Remove the last element of *X*.

## Examples {#examples}

```
x = 1 2 3;
pop!(x);
// output: 3

x;
// output: [1,2]
```

