You might want to try this Shawn.
Add the code:
(vl-load-com)
This function loads the extended autolisp functions for Visual Lisp if they are not already loaded.
So the code now becomes:
(defun c:DeletePageSetups
(/ cdg-PageSetup)
(vl-load-com)
(vlax-for cdg-Item
(vla-get-plotconfigurations
(vla-get-activedocument
(vlax-get-acad-object)
)
)
(vl-catch-all-apply 'vla-delete
(list cdg-Item)
)
)
)
This fixed it on my system. Anyone else!?
BK