Run a trimming knife along where the cornice joins the wall, the ceiling and any cornice you want to keep. Cut into the cavity behind the cornice, making sure you avoid cutting into the wall or ceiling. By cutting along these joints, you stop the paint on both surfaces from coming away when you remove the cornice. This saves you having to repaint the area.