You may want to delete the auto-save (.asv) files after the code is no more modified. This function deletes the .asv files in a given folder (and the subfolders).
Thank you very much. By this way, it becomes more easier to call it.
Suggest one small improvement -- if no input argument, use current directory. In your code this would be as simple as
if (nargin < 1)
folder = '';
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.