Only uninstall data if option is enabled. Closes #1854