Delete Multiple Fields (DeleteField example 3 on user help)

Discussion created by mackpete on Jan 12, 2011
Latest reply on Jan 13, 2011 by mackpete
I need to delete fields, many of them from many different datasets. I am following the following code from the ESRI website.

DeleteField example 3 (stand-alone script)

In the comments it says:

If the field is required, exclude it, to prevent errors

How do I exclude it? Do I add it to the fieldNameList?

Any help would be greatly appreciated.

Attached is the code, directly from the ESRI website.