[OnePlus 6 & 6T Cross Device Development] Toraddict:
This is my script for OnePlus 6 android 11. It doesn't seem to work perfectly though.

ui_print("+-------------------------------------+");
ui_print("+-------------------------------------+");
ui_print("| |");
ui_print("| Tomatot Debloater light 4.1 |");
ui_print("| |");
ui_print("| by Tomatot- |");
ui_print("| |");
ui_print("| Credits: |");
ui_print("|-Primokorn for the script tutorial |");
ui_print("|-TKruzze for Zip Builder |");
ui_print("| |");
ui_print("|Optimized for Oxygen OS 11 |");
ui_print("| |");
ui_print("+-------------------------------------+");
run_program("/sbin/mount", "/system_root");
run_program("/sbin/mount", "/vendor");
run_program("/sbin/mount", "/data");
delete_recursive(
"/system_root/system/system_ext/app/AntHalService",
# "/system_root/system/system_ext/app/AutoRegistration",
"/system_root/system/app/BasicDreams",
"/system_root/system/app/BookmarkProvider",
"/system_root/system/system_ext/app/BTtestmode",
# "/system_root/system/priv-app/app/BuiltInPrintService",
# "/system_root/system/system_ext/app/card",
# "/system_root/system/system_ext/app/CtsShimPrebuilt",
"/system_root/system/app/EasterEgg",
"/system_root/system/app/EngineeringMode",
# "/system_root/system/system_ext/app/EngSpecialTest",
"/system_root/system/app/GooglePrintRecommendationService",
"/system_root/system/product/app/GoogleTTS",
"/system_root/system/system_ext/app/LogKitSdService",
"/system_root/system/system_ext/app/NFCTestMode",
"/system_root/system/system_ext/priv-app/OpLogkit",
"/system_root/system/system_ext/app/oem_tcma",
"/system_root/system/system_ext/app/OPBugReportLite",
"/system_root/system/system_ext/app/OPCommonLogTool",
"/system_root/system/system_ext/app/OPLiveWallpaper",
"/system_root/system/system_ext/app/OPPush",
"/system_root/system/app/PartnerBookmarksProvider",
"/system_root/system/system_ext/app/PhotosOnline",
# "/system_root/system/system_ext/app/PlayAutoInstallConfig",
"/system_root/system/system_ext/app/Rftoolkit",
"/system_root/system/app/SensorTestTool",
"/system_root/system/system_ext/app/SoterService",
"/system_root/system/app/Stk",
# "/system_root/system/system_ext/app/SeempService",
"/system_root/system/app/Traceur",
"/system_root/system/app/WallpaperBackup",
# "/system_root/system/system_ext/app/WapiCertManage",
# "/system_root/system/system_ext/app/WifiRfTestApk",
# "/system_root/system/system_ext/priv-app/CtsShimPrivPrebuilt",
"/system_root/system/priv-app/CellBroadcastLegacyApp",
"/system_root/system/system_ext/priv-app/TagGoogle",
"/system_root/system/system_ext/app/uimremoteclient",
"/system_root/system/system_ext/priv-app/GoogleFeedback",
"/system_root/vendor/etc/usb_drivers.iso",
"/system_root/vendor/etc/apps",
"/system_root/system/app/ARCore_stub",
"/system_root/system/app/BackupRestoreRemoteService",
"/system_root/system/priv-app/DiracManager",
"/system_root/system/system_ext/app/NVBackupUI",
"/system_root/system/priv-app/BackupRestoreConfirmation",
"/system_root/system/priv-app/CallLogBackup",
"/system_root/system/priv-app/DiracAudioControlService",
"/system_root/system/priv-app/ManagedProvisioning",
"/system_root/system/priv-app/OnePlusWizard",
"/system_root/system/system_ext/priv-app/OPDeviceManager",
"/system_root/system/system_ext/priv-app/OPDeviceManagerProvider",
"/system_root/system/priv-app/SharedStorageBackup",
"/system_root/system/product/priv-app/Account",
# "/system_root/system/system_ext/product/app/atfwd",
"/system_root/system/product/app/GoogleTTS",
# "/system_root/system/system_ext/product/app/PhotoTable",
# "/system_root/system/system_ext/product/app/QdcmFF",
"/system_root/system/product/app/talkback",
"/system_root/system/product/app/Videos",
"/system_root/system/product/app/YouTube",
"/system_root/system/product/app/YTMusic",
# "/system_root/system/product/priv-app/AndroidAutoStub",
"/system_root/system/system_ext/priv-app/SetupWizard",
"/system_root/system/product/priv-app/Turbo",
"/data/india/india.img",
"/system_root/system/india"
);
unmount("/system_root");
unmount("/vendor");
unmount("/data");
ui_print(" ");
ui_print("Done.");
ui_print(" ");
ui_print("Ready to reboot.");
ui_print(" ");
ui_print("Enjoy better battery life, more RAM and more privacy!");
ui_print(" ");