Is there a single Unicorn setting which can completely disable unicorn synchronisation for a Sitecore instance? At the moment if I want to turn off synchronisation, I just delete the App_Config\Include\Unicorn folder, but I would like an easier to restore option if possible!
On Sitecore 8.1 I had to disable (rename file to .disabled at the end) these 7 files to fully disable Unicorn and not get errors.
as some other answers explained, you could just disable the files. A more, in my opnion, convient solution is to use the rule based configuration that was introduced a few versions ago. It can be used as some kind of feature toggle, thorough information can be found here
in the web.config, add an appsetting:
<add key="UnicornEnabled:define" value="Enabled" />
within the sitecore patch files for unicorn, register the feature toggle settings:
ANd last, but not least, toggle the configuration settings which need to be enabled/disabled. If you'd like to enable/disable a complete patchfile, just configure the sitecore node as follows:
<sitecore UnicornEnabled:require="Enabled" .... />
at the moment that you'd want to disable unicorn, just flip the appsetting to something else, and your unicorn is disabled.