> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/mss-extensibility/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/mss-extensibility/mss-5.1/functions-mss-to-kalipso/sales/516-sales-delete-line.md).

# 516 - Delete line

516 - Delete line

| Event               | Extension action set  | Description                                                                                      |
| ------------------- | --------------------- | ------------------------------------------------------------------------------------------------ |
| [Before ](#before)  | EXT\_0516\_1\_Before  | Will be executed before MSS delete the selected line;                                            |
| [Replace](#replace) | EXT\_0516\_2\_Replace | Will be executed before MSS delete the selected line with the possibility to cancel the process; |
| [After](#after)     | EXT0516\_3\_After     | Will be executed after delete the line;                                                          |

### Before

*Input Parameters*

* inDocumentType - Type of the document;
* inLineNumber - Number of the line;
* inCustomerCode - Code of the selected customer;

### Replace

*Input Parameters*

* inDocumentType – Type of the document;
* inLineNumber – Number of the line;
* inCustomerCode – Code of the selected customer;

*Output Parameters*

* outCanDelete – Return code: 1 – Continue the process / 0 – Cancel;

### After

*Input Parameters*

* inDocumentType - Type of the document;
* inLineNumber - Number of the line;
* inCustomerCode - Code of the selected customer;

*Output Parameters*

* outReloadDocument - Reload document lines, if equal to 1 MSS will reload all document lines to show any change made to the document.
