Delete temporary after they aren't needed. Closes #1188.