Skip to main content
DELETE
Delete a folder
Minimum required API key scope: Read/Write

Use Cases

  • Remove Empty Folders: An empty folder is deleted right away.
  • Remove a Folder Tree: Pass recursive=true to delete all subfolders and archive the queries and dashboards inside. To keep the content, move it out first with Move Queries and Dashboards.

Headers

X-Dune-Api-Key
string
required

API Key for the service

Path Parameters

folder_id
string
required

Folder id

Query Parameters

api_key
string

API Key, alternative to using the HTTP header X-Dune-Api-Key

recursive
boolean

Delete a folder that is not empty, archiving its queries and dashboards

Response

OK

archived_dashboard_count
integer
Example:

1

archived_query_count
integer
Example:

4

deleted_folder_count
integer

DeletedFolderCount counts the folder itself and every subfolder deleted with it.

Example:

3

folder_id
string
Example:

"dp180Cu3jW3L"

path
string
Example:

"/Research/RWA"