A handy function to delete all Fabric items in a workspace. Run this in a Python notebook in the workspace you want to delete items from. Everything, except that notebook, will be deleted. You need to have contributor+ role in the workspace. Delete the last remaining notebook manually.
Read on for the script. This one’s pretty straightforward, so there isn’t a lot in the way of additional commentary.