The Clear button on the Configuration Manager is designed to clear the codes that are self-generated by the IP firmware or the Configuration Manager itself.
Follow the steps below, if you want the "Clear" button from Configuration Manager to able to erase the Alarm task script that are self created by users themselves.
When you create your alarm task script, add it within an opening quotes which then the Clear button will be able to erase all those codes within the quotes.
Alternatively, create your own quotes within your script by following the below rules.
if(Motion(1))then auxon1; //r1_o1