# Create and Manage Databricks Spark Project Workspaces

After workspaces are configured, project owners can enable workspaces within their projects. This feature allows project members to [write data](https://documentation.immuta.com/latest/governance/author-policies-for-data-access-control/projects-and-purpose-based-access-control/writing-to-projects/how-to-guides/write-data-back) to projects and share this data with other users as [derived data sources](https://documentation.immuta.com/latest/governance/author-policies-for-data-access-control/projects-and-purpose-based-access-control/reference-guides/project-workspaces#derived-data-sources).

**Requirement**: You must own the project

**Prerequisites**:

* [Databricks Spark integration configured](https://documentation.immuta.com/latest/configuration/integrations/databricks/databricks-spark/how-to-guides/configuration).
* [Databricks workspace configured](https://documentation.immuta.com/latest/configuration/application-settings/how-to-guides/config-builder-guide#add-a-workspace).
* [Databricks tables registered in Immuta](https://documentation.immuta.com/latest/configuration/integrations/registering-metadata/data-sources/register-data-sources/databricks-tutorial).
* [External IDs have been mapped in for Databricks](https://documentation.immuta.com/latest/configuration/people/immuta-users/how-to-guides/external-user-mapping).

## Create a Databricks Spark workspace

{% hint style="info" %}
**Databricks cluster configuration**

Before creating a workspace, the cluster must send its configuration to Immuta; to do this, run a simple query on the cluster (i.e., `show tables`). Otherwise, an error message will occur when you attempt to create a workspace.
{% endhint %}

1. Navigate to the **Policies** tab and enable **Project Equalization** by clicking the Project Equalization slider to **on**.
2. Scroll to the **Workspace** section and click **Create**.
3. Select **Databricks** from the **Workspace Configuration** dropdown menu.
4. Opt to edit the sub-directory in the **Workspace Directory** field; this sub-directory auto-populates as the project name.
5. Enter the **Workspace Database Name**.
6. Click **Create** to enable the workspace.

## Delete a workspace

1. Scroll to the **Workspace** section on the policies tab and click the **toggle** to disable the workspace.
2. Click **Delete** in the workspace section.
3. Choose one of the following options in the modal:
   * **Purge Generic Workspace Data**: Permanently delete data, while the data used by derived data sources is preserved. *Note: If you created a derived data source that references a view on top of a table in Snowflake that isn't a derived data source, that table will be deleted and break the derived data source.*
   * **Purge Everything & Delete Derived Data Sources**: Permanently delete data and purge all derived data sources.
4. Click **Delete**.


---

# Agent Instructions: 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:

```
GET https://documentation.immuta.com/latest/governance/author-policies-for-data-access-control/projects-and-purpose-based-access-control/writing-to-projects/how-to-guides/databricks-native-workspace-tutorial.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
