curl --request POST \ --url https://api.dune.com/api/v1/query/{queryId}/archive \ --header 'X-DUNE-API-KEY: <x-dune-api-key>'
Copy
Ask AI
{
"query_id": 123
}
Query Management
Archive Query
This API allows for anyone to archive a query. Only the API key
generated under the context of the owner of that query will work.
This does not delete the query, but will make
it uneditable/unexecutable
POST
/
v1
/
query
/
{queryId}
/
archive
Copy
Ask AI
curl --request POST \ --url https://api.dune.com/api/v1/query/{queryId}/archive \ --header 'X-DUNE-API-KEY: <x-dune-api-key>'
Copy
Ask AI
{
"query_id": 123
}
In Dune context, delete action is replaced by archive as deletion of queries is not possible.
To access Query endpoints, an Analyst plan or higher is required.
Copy
Ask AI
curl --request POST \ --url https://api.dune.com/api/v1/query/{queryId}/archive \ --header 'X-DUNE-API-KEY: <x-dune-api-key>'