# 516 - Delete line

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/sales/516-sales-delete-line
>
> Eventos EXT_0516 ao apagar uma linha da venda: o Replace pode cancelar (outCanDelete) e o After pode recarregar as linhas do documento.

516 - Delete line

| Event                                       | Extension action set  | Description                                                                                      |
| ------------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------ |
| [Before ](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/sales/516-sales-delete-line.md#before)  |  EXT\_0516\_1\_Before | Will be executed before MSS delete the selected line;                                            |
| [Replace](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/sales/516-sales-delete-line.md#replace) | EXT\_0516\_2\_Replace | Will be executed before MSS delete the selected line with the possibility to cancel the process; |
| [After](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/sales/516-sales-delete-line.md#after)     | EXT\_0516\_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.
