fix #31481: plugin files configured to be loaded don't get removed when the file is removed