# 416 - Delete line

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

416 - Delete line

| Event                                        | Extension action set  | Description                                                                                      |
| -------------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------ |
| [Before ](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/orders/416-orders-delete-line.md#before)  | EXT\_0416\_1\_Before  | Will be executed before MSS delete the selected line;                                            |
| [Replace](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/orders/416-orders-delete-line.md#replace) | EXT\_0416\_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/orders/416-orders-delete-line.md#after)     | EXT\_0416\_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.
