void () { final VirtualFile file = createFile("a/b/c.txt"); assertEmpty(findArtifacts(file)); final Artifact a = addArtifact(root().dirCopy(file.getParent())); assertSame(a, assertOneElement(findArtifacts(file))); final ModifiableArtifactModel model = getArtifactManager().createModifiableModel(); model.getOrCreateModifiableArtifact(a).getRootElement().removeAllChildren(); commitModel(model); assertEmpty(findArtifacts(file)); }