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