---
title: "DeleteListItemCmd | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/DeleteListItemCmd/"
---

# DeleteListItemCmd

> The command to remove the current list item by paragraph index.

## Classes

### DeleteListItemCmd

#### Remarks

if paragraphs indexes are not specified, then the current selection (or cursor position) is used.

#### Extends

- [`ListCmd`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ListCmd.md#abstract-listcmd)

#### Implements

- [`ICommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#icommand)

#### Constructors

##### Constructor

```ts
new DeleteListItemCmd(textManager, initData?): DeleteListItemCmd;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `textManager` | [`ITextManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ITextManager.md#itextmanager) |
| `initData?` | [`DeleteListItemCmdData`](#deletelistitemcmddata) |

###### Returns

[`DeleteListItemCmd`](#deletelistitemcmd)

###### Overrides

[`ListCmd`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ListCmd.md#abstract-listcmd).[`constructor`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ListCmd.md#constructor)

#### Methods

##### execute()

```ts
execute(): boolean;
```

Executes the command.

###### Returns

`boolean`

true if changes were made, false otherwise.

###### Implementation of

[`ICommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#icommand).[`execute`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#execute)

***

### DeleteListItemCmdData

Data required to initialize the command.

#### Constructors

##### Constructor

```ts
new DeleteListItemCmdData(): DeleteListItemCmdData;
```

###### Returns

[`DeleteListItemCmdData`](#deletelistitemcmddata)

#### Properties

##### paragraphIndex?

```ts
optional paragraphIndex?: number;
```

Index of paragraph to delete list item.
