delete.m 449 B

123456789101112131415
  1. function this = delete(this)
  2. % Delete files of an M/EEG dataset from disk and return unlinked object
  3. % FORMAT this = delete(this)
  4. %__________________________________________________________________________
  5. % Copyright (C) 2008-2014 Wellcome Trust Centre for Neuroimaging
  6. % Vladimir Litvak
  7. % $Id: delete.m 6293 2014-12-23 18:15:57Z guillaume $
  8. if islinked(this)
  9. spm_unlink(fnamedat(this));
  10. end
  11. this = unlink(this);
  12. spm_unlink(fullfile(this));