> 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/general/3801-clear-document-lines.md).

# 3801 - Clear Document Lines

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;
