Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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

avatar
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

avatar
Master Collaborator

@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

 

avatar
Explorer

Hi ,

I tried the below but the notebook was not deleted.

 

Thanks

ASIF.

avatar
Master Collaborator

@ASIF123 

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