To delete first is an unnecessary step. View modules, load module, navigate to the directory where the module is stored. Select USER or BASE, whichever is desired. Load it, you should be prompted that there there is already a module with that name, confirm to overwrite it. Done.
Look at the data from the VIEW function key. Find the one that you have created, if it is there. If you had a syntax error, it will not have loaded your module that you think is loaded. Also, you could view the module in the editor of the pendant. Make sure that it is type PERS or CONST.