# removeTail! {#removetail}

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

## Syntax {#syntax}

`removeTail!(obj, n)`

## Arguments {#arguments}

**obj** is a vector.

**n** is a positive integer indicating the number of elements at the end of the vector to be removed.

## Details {#details}

Delete the last *n* elements from a vector.

## Examples {#examples}

```
x=11..20;
x.removeTail!(3);
// output: [11,12,13,14,15,16,17]
```

