Function Reference
— Built-in Function: [err, msg] = unlink (file)

Delete the file named file.

If successful, err is 0 and msg is an empty string. Otherwise, err is nonzero and msg contains a system-dependent error message.