In most cases, you should not explicitly remove an IDR because this leaves your system vulnerable to the issue that the IDR addresses. The IDR should be removed as part of the process of updating to the SRU that includes the fix for the issue that the IDR addresses.
One case when you could explicitly remove an IDR is when the IDR performs only diagnostic work and you no longer need to gather that diagnostic information.
The IDR package summary includes instructions for how to remove this package.
The info, contents, and search subcommands can all show the package summary.
$ pkg info idr2353 Name: idr2353 Summary: To back out This IDR : # /usr/bin/pkg uninstall -r idr2353 ...
$ pkg contents -Ho value -a name=pkg.summary idr2353 To back out This IDR : # /usr/bin/pkg uninstall -r idr2353
$ pkg search -Hlo value idr2353::pkg.summary: To back out This IDR : # /usr/bin/pkg uninstall -r idr2353
You can also use the command shown in Example 15, Show the Location of the Release Notes for an IDR to view this information in the installed release notes file.
Use the pkg uninstall command as shown in the package summary:
$ pkg uninstall -r idr1929
The -r option performs the removal in all non-global zones associated with this global zone.