Delete a Notebook¶
Use this API to delete a notebook. To know how to clone a notebook using the Notebooks UI, see Deleting a Notebook.
Before deleting a notebook, you must ensure that the notebook does not have any active command, active schedules associated with the notebook, or any scheduled dashboard.
The following users can make this API call:
No additional parameters are required in the delete a notebook API call.
Request API Syntax¶
curl -i -X DELETE -H "X-AUTH-TOKEN: $AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json" \ "https://api.qubole.com/api/v1.2/notebooks/<notebook ID>"
The above syntax uses https://api.qubole.com as the endpoint. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.
Sample API Request¶
Here is an example to delete a Spark notebook with its ID as 2000.
curl -i -X DELETE -H "X-AUTH-TOKEN: $AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json" \ "https://api.qubole.com/api/v1.2/notebooks/2000"