This script allows you to organize your labels (folders) in GMail efficiently from Sheets.
Start by copying the document to your Drive and then open it.
Then select "Export Labels from GMail" to import all existing labels. The first time you run the script, you will need to authenticate with your Google Workspace account.
Now you can see all your personal labels in the list. But you can also add new rows if you want to create new labels. When you want to create a new label, you only fill in the name in the Label Name column. You select "Push Changes to Gmail" and the changes you made will be created and changed.
You can also create sublabels. Example: Label Label/sublabel/next/and next again
If you want to delete a label, you just remove the name and run "Push Changes to Gmail".