Reinstated unlink function

In previous commit, closed files or projects weren't unlinked from the
workspace.