> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/en/features/questionnaires/delete.md).

# Delete a questionnaire or a template

Learn how to move a questionnaire or a questionnaire template to the recycle bin, restore it or delete it permanently.

In Dastra, a questionnaire or a questionnaire template goes through the recycle bin before it is deleted permanently. This step protects against accidental deletion: as long as the item is in the recycle bin, you can restore it.

## Delete a questionnaire

### Move to the recycle bin

1. In a list of questionnaires (**View questionnaires**, **My responses** or a template's dashboard), click the three dots of the row concerned.
2. Click **Move to recycle bin** and confirm.

You can also open the questionnaire and choose **Move to recycle bin** in the menu next to its main button. To process several questionnaires at once, select the rows and use the matching batch action.

<figure><img src="https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvBxs22wUMicv9uWp6C-1972196547%2Fuploads%2Fgit-blob-13435509c7624bcbec4ba6a65fcaab94239fbcc1%2Fquestionnaires-delete-1.png?alt=media" alt="Row menu of the questionnaire list with the Move to recycle bin action"><figcaption><p>The Move to recycle bin action in a questionnaire's menu</p></figcaption></figure>

### Restore or delete permanently

1. Click **Filters** above the list, then turn on **View recycle bin**.
2. In the questionnaire's menu, click **Restore** to put it back in your lists, or **Delete** to delete it permanently.

<figure><img src="https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvBxs22wUMicv9uWp6C-1972196547%2Fuploads%2Fgit-blob-3075ce5d393a6310ee682267e6968eb0cf5d587f%2Fquestionnaires-delete-2.png?alt=media" alt="Filters of the questionnaire list with View recycle bin on and the Restore or Delete menu"><figcaption><p>The questionnaire recycle bin: Restore or Delete</p></figcaption></figure>

{% hint style="danger" %}
Permanently deleting a questionnaire cannot be undone.
{% endhint %}

## Delete a template

Questionnaire templates have a recycle bin too.

1. In **Questionnaire templates**, click the three dots of the template.
2. Click **Move to recycle bin** and confirm.

<figure><img src="https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvBxs22wUMicv9uWp6C-1972196547%2Fuploads%2Fgit-blob-dddebeb9c1f4f528a2152918be794d13420d0eca%2Fquestionnaires-delete-3.png?alt=media" alt="Questionnaire template menu with the Move to recycle bin action"><figcaption><p>The menu of a questionnaire template</p></figcaption></figure>

To restore a template or delete it permanently, turn on **View recycle bin** at the top of the template list. In the template's menu, click **Restore** or **Delete permanently**.

<figure><img src="https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvBxs22wUMicv9uWp6C-1972196547%2Fuploads%2Fgit-blob-3b6fd2418d76e6551d155583e9170971aa21d14b%2Fquestionnaires-delete-4.png?alt=media" alt="Questionnaire templates in the recycle bin with the Restore or Delete permanently menu"><figcaption><p>The questionnaire template recycle bin</p></figcaption></figure>

{% hint style="info" %}
The number of templates depends on your plan, and the template recycle bin counts towards this quota: a template moved to the recycle bin still occupies a slot until it is deleted permanently. If you want to keep a copy of a template before deleting it, export it as JSON from its menu: you can import it again later.
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.dastra.eu/en/features/questionnaires/delete.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
