Depending on the process you are trying to clear, sometimes there is a corresponding "clear" command. Otherwise, sometimes the only way to kill a process is to reload the router/switch (ie. memory leak, high cpu causing the router to be inaccessible).