Support Questions
Find answers, ask questions, and share your expertise

Delete Zeppelin notebook (using notebookid) in 0.8.0 version via REST API / curl command

Explorer

Hi ,

We need to delete some zeppelin notebooks using the notebookid via REST API or curl command. The default storage of zeppelin notebooks are on hdfs.

hdp 3.1.5.

Zeppelin 0.8.0

 

Kindly help us with the same.

@Akhil S Naik 

@Felix Albani 

@Scharan 

3 REPLIES 3

Expert Contributor

@ASIF123 

Use below curl commands to delete zeppelin notebook

 

# curl -v -c cookie.txt -d 'userName=<Username>&password=<Password>' <Zeppelin host>:9995/api/login

 

# curl -v --cookie cookie.txt -X DELETE http://<Zeppelin_host>:9995/api/notebook/<Notebook_id>

 

Example:

#  curl -v -c cookie.txt -d 'userName=sai&password=admin' http://c486-node2.coelab.cloudera.com:9995/api/login

# curl -v --cookie cookie.txt -X DELETE http://c486-node2.coelab.cloudera.com:9995/api/notebook/2FRPUGU9S

 

Explorer

Hi ,

I tried the below but the notebook was not deleted.

 

Thanks

ASIF.

Expert Contributor

@ASIF123 

Can you share the stack trace of the error and also share the commands you used to delete the notebook