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 and Activating a Notebook Session explains how to retain block volume data.

Note

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 starts 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.

Caution

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. On the Projects list page, select the project that contains the notebook sessions that you want to work with. If you need help finding the list page or the project, see Listing Projects.
    2. On the project details page, select Notebook sessions.
      All notebook sessions in the selected project are displayed in a table.
    3. Find the notebook session that you want to work with.
    4. From the Actions menu (three dots) for the project, select Terminate (or Delete if you see that option).
    5. In the Delete notebook session dialog box, enter the name of the notebook session exactly as it appears.
    6. Select 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 parameters and values for CLI commands, see the CLI Command Reference.

  • Use the DeleteNotebookSession operation to delete the notebook session.