You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mydelete.m
    path of file: ./repos/brainSurfer/scripts/HCP/cifti/private
    
    the code of the file until where you have to start completion: function mydelete(filename)
    %fix matlab's "error if doesn't exist" and braindead "send to recycling based on preference" misfeatures
    if exist(filename, 'file')
        recstatus = recycle();

    
function mydelete(filename)
    %fix matlab's "error if doesn't exist" and braindead "send to recycling based on preference" misfeatures
    if exist(filename, 'file')
        recstatus = recycle();
        cleanupObj = onCleanup(@()(recycle(recstatus)));
        recycle('off');
        delete(filename);
    end