delete dpe config

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
sblancha
Posts:64
Joined: Thu Feb 18, 2016 4:18 pm

delete dpe config

Post by sblancha »

Hi there,

I would like to delete a config of dpe by script (e.g. the _alert_hdl config), not the value of the config but the config itself. Is there any function to do this?
I did not find any clue in the help.

Cheers,
Sebastien

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: delete dpe config

Post by leoknipp »

If you want to delete a config you can do a dpSet() on the _type attribute with the value 0.
In case of an _alert_hdl config you possibly have to acknowledge pending alerts first and then you have to deactivate it before it can be deleted.

Best Regards
Leopold Knipp
Senior Support Specialist

sblancha
Posts:64
Joined: Thu Feb 18, 2016 4:18 pm

Re: delete dpe config

Post by sblancha »

ok thanks for help.
Sebastien

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: delete dpe config

Post by Gertjan van Schijndel »

Perhaps it is better to use the constant 'DPCONFIG_NONE' instead of the value 0.
Even if the value of this constant does not change, searching on the constant name will probably return less result than a search on the value 0.

4 posts • Page 1 of 1