Currently I am deleting unwanted content by using File.Delete(file); from System.IO, but this feels bad because it effectively deletes the object outside of Flax with no nice way to check if the content is in use / remove it from the Flax content database. Is there a better way to remove unused content?
Example, suppose I create a new material in /Content/MyProject/Materials, but I later want to remove all materials from this directory. What is the recommended way to do this using C#?