> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/administration-and-setup/setup/document-training/training-line-fields-table-training/save-and-delete-rules.md).

# Save and Delete Rules

Once you’ve completed the training or correction of a table, it’s important to **save your rules** so that DocBits can apply them automatically to future documents from the same supplier.

### Saving Rules

After defining all columns and corrections:

1. Click the **SAVE RULES** button at the top.
2. A rule counter will confirm how many extraction rules have been saved.

This ensures DocBits will automatically use your trained layout the next time it sees a similar document.

![save rules](https://lh7-us.googleusercontent.com/zVn_mYiL7PwiILj2gJ4sxaPKpEUNOfKwryiZJ2Umk2SpvGHZ8OVUznBReJHqCM7UstWTt6nq0azJrtPDK_2q4jVUZgsE7bf6toT9kl57wByn4EG3JqafBfZt5G54OZ8okUfpLUH1tvHb0mZIC119I4k)

### Deleting Rules

You can remove saved rules using the **DELETE RULES** button if they were configured incorrectly or if the document layout has changed significantly.

<mark style="color:red;">**Warning**</mark>: Deleting rules affects all documents from the same supplier with the same layout. You will need to **retrain the table extraction from scratch**.

![](https://lh7-us.googleusercontent.com/KyfMBBv2ghBgSmqTZ4zMVsHKaoAVwcha8XRhUPNPrVMNwsmHXCDMDSsmkJYE2EYWynD1SzMcf57dmqvGIC4u3UpQohRxZW3A2RNICsNyI6Du0-jd3ZibupkTwRnYoD_XUAbfypZ5iQj-9Z0XN_SreUs)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.docbits.com/administration-and-setup/setup/document-training/training-line-fields-table-training/save-and-delete-rules.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
