How to erase KEXT packages?

Trying to erase the following KEXT packages, all in the same folder: /Library/StagedExtensions/Library/Extensions/

  • RtWlanDisk.kext
  • RtWlanU.kext
  • RtWlanU1827.kext


OS: Mac OSX Catalina (10.15.7)


In Terminal:

  • Changed directory: cd /Library/StagedExtensions/Library/Extensions


  • Command sudo kextunload [name.kext] returned

(kernel) Kext com.realtek.driver.[name] not found for unload request. Failed to unload com.realtek.driver.[name] - (libkern/kext) not found


  • Command sudo rm -rf [name.kext] returned

rm: [name.kext]/Contents/_CodeSignature/CodeResources: Operation not permitted

rm: [name.kext]/Contents/_CodeSignature: Operation not permitted

rm: [name.kext]/.kext/Contents/MacOS/RtWlanDisk: Operation not permitted

rm: [name.kext]/.kext/Contents/MacOS: Operation not permitted

rm: [name.kext]/.kext/Contents/Info.plist: Operation not permitted

rm: [name.kext]/.kext/Contents: Operation not permitted

rm: RtWlanDisk.kext: Operation not permitted


Help much appreciated. Thanks.

MacBook Air 13″, macOS 10.15

Posted on May 7, 2022 08:38 PM

Reply

Similar questions

2 replies

May 8, 2022 04:55 AM in response to UserWithQs

If the are extensions reported by Etrecheck, they may not always be present.

You may be able to boot the machine in safe mode and see if you can delete them with the Finder. Safe mode is shift key held at startup.


Keep in mind, these extensions may be integral part of the system itself, and if you delete those they could lead to kernel panics. Generally speaking you don't want to touch them unless you know they are third party and no longer necessary.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to erase KEXT packages?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.