bug 839341: Properly delete demo files when submission record deleted