# 3801 - Clear Document Lines

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/general/3801-clear-document-lines
>
> Eventos EXT_3801 antes e depois de limpar as tabelas temporárias do documento; o Replace pode cancelar a limpeza com outCanClear.

3801 - Clear Document Lines

| Event   | Extension action set  | Description                                                                                                 |
| ------- | --------------------- | ----------------------------------------------------------------------------------------------------------- |
| Before  | EXT\_3801\_1\_Before  | Will be executed before MSS clear the document temporary tables;                                            |
| Replace | EXT\_3801\_2\_Replace | Will be executed before MSS clear the document temporary tables with the possibility to cancel the process; |
| After   | EXT\_3801\_3\_After   | Will be executed after MSS clear the document temporary tables;                                             |

_Input Parameters (event before):_

* inDocumentType – Type of the document;

_Input Parameters_ _(event replace):_

* inDocumentType – Type of the document;

_Output Parameters (event replace):_

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

_Input Parameters (event after):_

* inDocumentType – Type of the document;
