[#BloombergLP-bsls-OutputRedirector-disable] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/OutputRedirector.adoc[OutputRedirector]::disable :relfileprefix: ../../../ :mrdocs: If the redirector is in a redirected state, restore the original target of the redirected stream and close the temporary buffer. If the redirector is not in a redirected state, this method is a no‐op. Calling this method invalidates all output in the temporary file, so a call to `load` after the next successful `enable` call will not load any output that was previously written to the file. This method does not clear the scratch buffer, so one may call `load` before calling `disable`, and the contents will be available after `disable` is called. If `disable` fails to disable the redirection, it will end the program by calling `std::abort`. == Synopsis Declared in `<bsls_outputredirector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void disable(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#