I want to add and delete custom options to dropdown product attributes via custom code.


I have created a attribute name say myattrib, what I want to delete all it options and add my custom option how can I  do it?