Linting Org-roam files

What if I am deleting a file and want that deletion to remove all org-links? Wouldn’t this proposed workflow cause a problem here? Sometimes To link, or not to link is subtle – you think a concept in a new domain might be work keeping around, but as notes progress you realize the concept is ubiquitous/fundamental and not worth keeping around.