Trigger a 'fileremoved' event for external js use.