now removes div for file when you delete it in the editor.