src/document/DocumentManager.js
function notifyPathDeleted(fullPath) {
        // FileSyncManager.syncOpenDocuments() does all the work prompting
        //  the user to save any unsaved changes and then calls us back
        //  via notifyFileDeleted
        FileSyncManager.syncOpenDocuments(Strings.FILE_DELETED_TITLE);

        var projectRoot = ProjectManager.getProjectRoot(),
            context = {
                location : {
                    scope: "user",
                    layer: "project",
                    layerID: projectRoot.fullPath
                }
            };
        var encoding = PreferencesManager.getViewState("encoding", context);
        delete encoding[fullPath];
        PreferencesManager.setViewState("encoding", encoding, context);

        if (!getOpenDocumentForPath(fullPath) &&
                !MainViewManager.findInAllWorkingSets(fullPath).length) {
            // For images not open in the workingset,
            // FileSyncManager.syncOpenDocuments() will
            //  not tell us to close those views
            exports.trigger("pathDeleted", fullPath);
        }
    }
function notifyPathDeleted(fullPath) {
        // FileSyncManager.syncOpenDocuments() does all the work prompting
        //  the user to save any unsaved changes and then calls us back
        //  via notifyFileDeleted
        FileSyncManager.syncOpenDocuments(Strings.FILE_DELETED_TITLE);

        var projectRoot = ProjectManager.getProjectRoot(),
            context = {
                location : {
                    scope: "user",
                    layer: "project",
                    layerID: projectRoot.fullPath
                }
            };
        var encoding = PreferencesManager.getViewState("encoding", context);
        delete encoding[fullPath];
        PreferencesManager.setViewState("encoding", encoding, context);

        if (!getOpenDocumentForPath(fullPath) &&
                !MainViewManager.findInAllWorkingSets(fullPath).length) {
            // For images not open in the workingset,
            // FileSyncManager.syncOpenDocuments() will
            //  not tell us to close those views
            exports.trigger("pathDeleted", fullPath);
        }
    }
function notifyPathDeleted ( fullPath ) { // FileSyncManager.syncOpenDocuments() does all the work prompting //  the user to save any unsaved changes and then calls us back //  via notifyFileDeleted FileSyncManager . syncOpenDocuments ( Strings . FILE_DELETED_TITLE ) ; var projectRoot = ProjectManager . getProjectRoot ( ) , context = { location : { scope : "user" , layer : "project" , layerID : projectRoot . fullPath } } ; var encoding = PreferencesManager . getViewState ( "encoding" , context ) ; delete encoding [ fullPath ] ; PreferencesManager . setViewState ( "encoding" , encoding , context ) ; if ( ! getOpenDocumentForPath ( fullPath ) && ! MainViewManager . findInAllWorkingSets ( fullPath ) . length ) { // For images not open in the workingset, // FileSyncManager.syncOpenDocuments() will //  not tell us to close those views exports . trigger ( "pathDeleted" , fullPath ) ; } }
Called after a file or folder has been deleted. This function is responsible
for updating underlying model data and notifying all views of the change.

@param {string} fullPath The path of the file/folder that has been deleted
Called after a file or folder has been deleted . This function is responsible for updating underlying model data and notifying all views of the change .