Disable files when their version is deleted (bug 980916)