MacOS – How to revert this defaults write command

defaultsemailmacosmojavepreferences

defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes

It is related to this question:

How can I disable inline attachment previews (i.e. view as icon by default) in Mac Mail in macOS Mojave?

Best Answer

When you’ve written a boolean value, you can choose to write the opposite value, replacing yes with no. Usually, to reset a preference, you delete the preference so the default takes effect, which you can do with defaults delete:

defaults delete com.apple.mail DisableInlineAttachmentViewing