1
0
mirror of https://github.com/docker/docs.git synced 2026-11-06 12:54:24 +03:00

Merge pull request #128 from kitematic/jmorgan_fix_appdelete

Fixing but where app would not be deleted
This commit is contained in:
Jeffrey Morgan
2014-12-09 10:38:27 -08:00

View File

@@ -68,10 +68,11 @@ AppUtil.remove = function (appId) {
var app = Apps.findOne(appId);
if (app.docker) {
Docker.removeContainer(app.docker.Id, function (err) {
Apps.remove({_id: appId});
var appPath = path.join(Util.KITE_PATH, app.name);
Util.deleteFolder(appPath);
});
} else {
Apps.remove({_id: appId});
}
};