If you want to delete not existing attachments or attachments with missing documents you create a SERVICE|IT task Splitting attachment folders in subfolders. There you have the window Attachments Maintenance with the option Delete non-existing attachments. If you tick this option you have the possibility to also remove broken links.