Fixed delete method

the origin method leads to an endless recursion in the writeargs method. the original method took multiple string arrays as parameters