---
title: Manage workspace objects
description: Learn how to work with folders and other Databricks workspace objects.
canonical_url: https://docs.databricks.com/aws/en/workspace/workspace-objects
---

# <a id="objects" />Manage workspace objects

The objects stored in the Workspace root folder are [folders](https://docs.databricks.com/aws/en/workspace/workspace-browser.md#folders), [Git folders](https://docs.databricks.com/aws/en/workspace/workspace-assets.md#git-folders), [notebooks](https://docs.databricks.com/aws/en/workspace/workspace-assets.md#ws-notebooks), [files](https://docs.databricks.com/aws/en/files/index.md) (in Databricks Runtime 11.3 LTS and above), [queries](https://docs.databricks.com/aws/en/workspace/workspace-assets.md#queries), [dashboards](https://docs.databricks.com/aws/en/workspace/workspace-assets.md#dashboards), [Genie Agents](https://docs.databricks.com/aws/en/genie-agents/index.md), [alerts](https://docs.databricks.com/aws/en/workspace/workspace-assets.md#alerts), and [experiments](https://docs.databricks.com/aws/en/mlflow/experiments.md). To perform an action on a Workspace object, right-click the object or click ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) to the right of the object.

![Object menu](https://docs.databricks.com/aws/en/images/workspace/object-menu.png)

From the drop-down menu you can:

* If the object is a folder:
  * Create a workspace object in the folder.
  * Import a [notebook or Databricks archive](https://docs.databricks.com/aws/en/notebooks/notebook-export-import.md).
* Clone the object. (Files cannot be cloned.)
* If the object is a notebook or a file, download the object.
* Copy the URL or full path to the object.
* Rename the object.
* Share the object and set permissions on the object.
* Move the object to another folder.
* Add the object to favorites.
* Move the object to Trash. See [Delete an object](https://docs.databricks.com/aws/en/workspace/workspace-objects.md#delete-object).

In addition to the procedures listed in this article, you can also do the following:

* Create a folder with the [databricks workspace mkdirs](https://docs.databricks.com/aws/en/dev-tools/cli/commands.md) command in the Databricks CLI, the [POST /api/2.0/workspace/mkdirs](https://docs.databricks.com/api/workspace/introduction) operation in the Workspace API 2.0, and the [Databricks Terraform provider](https://docs.databricks.com/aws/en/dev-tools/terraform/index.md) and [databricks\_directory](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/directory).
* Create a notebook with the [Databricks Terraform provider](https://docs.databricks.com/aws/en/dev-tools/terraform/index.md) and [databricks\_notebook](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/notebook).
* Export a folder or notebook with the [databricks workspace export\_dir](https://docs.databricks.com/aws/en/dev-tools/cli/commands.md) or [databricks workspace export](https://docs.databricks.com/aws/en/dev-tools/cli/commands.md) commands in the Databricks CLI, and the [GET /api/2.0/workspace/export](https://docs.databricks.com/api/workspace/introduction) operation in the Workspace API 2.0. For comprehensive workspace data export guidance, see [Export workspace data](https://docs.databricks.com/aws/en/security/privacy/export-workspace-data.md).
* Set permissions on the following workspace objects:
  * For notebooks, with the [PUT /api/2.0/preview/permissions/notebooks/\{notebook\_id}](https://docs.databricks.com/api/workspace/permissions) or [PATCH /api/2.0/preview/permissions/notebooks/\{notebook\_id}](https://docs.databricks.com/api/workspace/permissions) operations in the Permissions API 2.0.
  * For folders, with the [PUT /api/2.0/preview/permissions/directories/\{directory\_id}](https://docs.databricks.com/api/workspace/permissions) or [PATCH /api/2.0/preview/permissions/directories/\{directory\_id}](https://docs.databricks.com/api/workspace/permissions) operations in the Permissions API 2.0.

## <a id="recent_objects" />Access recently used objects

You can access recently used objects by clicking ![Recents Icon](https://docs.databricks.com/aws/en/images/icons/recents-icon.png) **Recents** in the sidebar or the Recents column on the workspace landing page.

> [!NOTE]
>
> The Recents list is cleared after deleting the browser cache and cookies.

## <a id="move-object" />Move an object

To move an object, drag-and-drop the object, or click ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) to the right of the object and select **Move**:

![Move object](https://docs.databricks.com/aws/en/images/workspace/move-drop-down.png)

## <a id="delete-object" />Delete an object

To delete an object, right-click the object or click ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) to the right of the object, then select **Move to Trash**. Contents of the **Trash** folder are deleted permanently after **30 days**.

To permanently delete an object in the Trash manually, right-click the object or click ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) to the right of the object, then select **Permanently delete**.

![Delete immediately](https://docs.databricks.com/aws/en/images/workspace/trash-delete.png)

You can permanently delete all objects in the Trash by clicking **Empty Trash**.

![Empty trash](https://docs.databricks.com/aws/en/images/workspace/empty-trash.png)

You can also delete objects with the [databricks workspace delete](https://docs.databricks.com/aws/en/dev-tools/cli/commands.md) or [databricks workspace rm](https://docs.databricks.com/aws/en/dev-tools/cli/commands.md) commands in the Databricks CLI, and the [POST /api/2.0/workspace/delete](https://docs.databricks.com/api/workspace/introduction) operation in the Workspace API 2.0.

> [!NOTE]
>
> If you delete an object using the Databricks CLI or the Workspace API 2.0, the object doesn't appear in the Trash folder.

## <a id="restore-object" />Restore an object

To restore an object, drag-and-drop the object to another folder, or click ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) to the right of the object and select **Restore**:

![Restore object](https://docs.databricks.com/aws/en/images/workspace/restore-object.png)
