Deleting a Notebook Session

Delete a notebook session in Data Science.

When you delete a notebook session, it's underlying Compute instance is stopped, and the block volume is deleted. Deactivating Notebook Sessions explains how to retain block volume data.


Deleted notebook sessions exist in lists for 30 days after being deleted. You can filter them out of lists by using the State filter.

The delete notebook session action is asynchronous and initiates a work request. You can use the work request to track the status of an operation. For general information about using work requests in OCI, see Work Requests and the Work Requests API.


If you want to keep the file changes in a notebook session's file system and attached block volume, you must back it up before you delete the notebook session. For example, you can copy files to an Object Storage bucket or commit and push changes to a Git repository outside the notebook session. Otherwise, all file changes in the notebook session's file system and attached block volume are lost.
    1. Use the Console to sign in to a tenancy with the necessary policies.
    2. Open the navigation menu and click Analytics & AI. Under Machine Learning, click Data Science.
    3. Select the compartment that contains the project with the notebook session.

      All projects in the compartment are listed.

    4. Click the name of the project.

      The project details page opens and lists the notebook sessions.

    5. Click the name of the notebook session that you want to delete.

      The notebook session details page opens.

    6. Click More actions. and then Delete.
    7. Enter the name of the notebook session exactly as it appears, and then click Delete.
    A notification is displayed indicating that the notebook session is deleted successfully.
  • Use the oci data-science notebook session delete command and required parameters to delete a notebook session:

    oci data-science notebook-session delete --notebook-session-id <notebook-session-id>... [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

  • Use the DeleteNotebookSession operation to delete the notebook session.