[Samsung Galaxy S10 Guides, News, & Discussion] NisseGurra:
My updater clean script, bit hardcore ;)

i_print("Unmount partitions if mounted");

ifelse(is_mounted("/system"), unmount("/system"));

mount("ext4", "EMMC", "/dev/block/platform/13d60000.ufs/by-name/system", "/system");

delete_recursive("/system/system/app/Adaway");

delete_recursive("/system/system/app/AppLock");

delete_recursive("/system/system/app/AllshareFileShare");

delete_recursive("/system/system/app/AllshareMediaShare");

delete_recursive("/system/system/app/AntHalService");

delete_recursive("/system/system/app/ANTPlusPlugins");

delete_recursive("/system/system/app/ANTPlusTest");

delete_recursive("/system/system/app/ClipboardEdge");

delete_recursive("/system/system/app/CocktailQuickTool");

delete_recursive("/system/system/app/SBrowserEdge");

delete_recursive("/system/system/app/Facebook_stub");

delete_recursive("/system/system/app/FBAppManager_NS");

delete_recursive("/system/system/app/FlipboardBriefing");

delete_recursive("/system/system/app/GameOptimizer");

delete_recursive("/system/system/app/GameOptimizingService");

delete_recursive("/system/system/app/GearManagerStub");

delete_recursive("/system/system/app/Gmail2");

delete_recursive("/system/system/app/GoogleTTS");

delete_recursive("/system/system/app/SamsungTTS");

delete_recursive("/system/system/app/LinkSharing_v10");

delete_recursive("/system/system/app/Maps");

delete_recursive("/system/system/app/SmartMirroring");

delete_recursive("/system/system/app/MirrorLink");

delete_recursive("/system/system/app/YouTube");

delete_recursive("/system/system/app/Stk");

delete_recursive("/system/system/app/Stk2");

delete_recursive("/system/system/app/SmartReminder");

delete_recursive("/system/system/app/KidsHome_Installer");

delete_recursive("/system/system/app/ARCore");

delete_recursive("/system/system/app/ClockPackage");

delete_recursive("/system/system/app/EasterEgg");

delete_recursive("/system/system/app/EasymodeContactsWidget81");

delete_recursive("/system/system/app/Foundation");

delete_recursive("/system/system/app/GoogleCalendarSyncAdapter");

delete_recursive("/system/system/app/GoogleContactsSyncAdapter");

delete_recursive("/system/system/app/GooglePrintRecommendationService");

delete_recursive("/system/system/app/HiyaService");

delete_recursive("/system/system/app/PhotoTable");

delete_recursive("/system/system/app/SamsungCalendar");

delete_recursive("/system/system/app/SMusicPicker");

delete_recursive("/system/system/app/Traceur");

delete_recursive("/system/system/app/WebManual");

delete_recursive("/system/system/app/VideoEditorLite_Dream_N");

delete_recursive("/system/system/app/VideoTrimmer");

delete_recursive("/system/system/app/WlanTest");

delete_recursive("/system/system/app/YouTube");

delete_recursive("/system/system/app/AllshareFileShare");

delete_recursive("/system/system/app/AllshareMediaShare");

delete_recursive("/system/system/app/BasicDreams");

delete_recursive("/system/system/app/BluetoothMidiService");

delete_recursive("/system/system/app/BookmarkProvider");

delete_recursive("/system/system/app/CaptivePortalLogin");

delete_recursive("/system/system/app/CarmodeStub");

delete_recursive("/system/system/app/BluetoothTest");

delete_recursive("/system/system/app/SamsungIMEv3.3");

delete_recursive("/system/system/app/SamsungOne");

delete_recursive("/system/system/app/StoryEditor_Dream_N");

delete_recursive("/system/system/app/SlowMotionVideoEditor_BGMProvider");

delete_recursive("/system/system/app/GoogleIntelligenceSenseDark");

delete_recursive("/system/system/app/GoogleIntelligenceSenseLight");

delete_recursive("/system/system/app/DictDiotekForSec");

delete_recursive("/system/system/app/LiveDrawing");

delete_recursive("/system/system/app/PartnerBookmarksProvider");

delete_recursive("/system/system/app/SmartSwitchAgent");

delete_recursive("/system/system/app/SplitSoundService");

delete_recursive("/system/system/app/SelfMotionPanoramaViewer");

delete_recursive("/system/system/app/InteractivePanoramaViewer_WQHD");

delete_recursive("/system/system/app/MotionPanoramaViewer");

delete_recursive("/system/system/app/SmartSwitchAgent");

delete_recursive("/system/system/app/SplitSoundService");

delete_recursive("/system/system/app/SelfMotionPanoramaViewer");

delete_recursive("/system/system/app/InteractivePanoramaViewer_WQHD");

delete_recursive("/system/system/preload");

delete_recursive("/system/system/preloadFotaOnly");

delete_recursive("/system/system/tts");

delete_recursive("/system/system/lost+found");

delete_recursive("/system/system/usr/srec");

delete_recursive("/system/system/priv-app/ANTRadioService");

delete_recursive("/system/system/priv-app/AppsEdgePanel_v3.2");

delete_recursive("/system/system/priv-app/TaskEdgePanel_v3.2");

delete_recursive("/system/system/priv-app/CtsShimPrivPrebuilt");

delete_recursive("/system/system/priv-app/FBInstaller_NS");

delete_recursive("/system/system/priv-app/FBServices");

delete_recursive("/system/system/priv-app/GameHome");

delete_recursive("/system/system/priv-app/GameTools_Dream");

delete_recursive("/system/system/priv-app/Gear360Editor_Beyond");

delete_recursive("/system/system/priv-app/GearVRService");

delete_recursive("/system/system/priv-app/LinkedIn_SamsungStub");

delete_recursive("/system/system/priv-app/OfficeMobile_SamsungStub");

delete_recursive("/system/system/priv-app/OneDrive_Samsung_v3");

delete_recursive("/system/system/priv-app/KnoxContainerDesktop");

delete_recursive("/system/system/priv-app/KnoxDesktopLauncher");

delete_recursive("/system/system/priv-app/DesktopModeUiService");

delete_recursive("/system/system/priv-app/SystemUIDesktop");

delete_recursive("/system/system/priv-app/GalaxyApps_OPEN");

delete_recursive("/system/system/priv-app/GalaxyAppsWidget_Phone_Dream");

delete_recursive("/system/system/priv-app/GoogleFeedback");

delete_recursive("/system/system/priv-app/LedCoverAppBeyond");

delete_recursive("/system/system/priv-app/LedCoverService");

delete_recursive("/system/system/priv-app/SecMyFiles2018");

delete_recursive("/system/system/priv-app/SmartManager_v6_DeviceSecurity");

delete_recursive("/system/system/priv-app/SVoiceIME");

delete_recursive("/system/system/priv-app/HealthService");

delete_recursive("/system/system/priv-app/Tag");

delete_recursive("/system/system/priv-app/Upday");

delete_recursive("/system/system/priv-app/Velvet");

delete_recursive("/system/system/priv-app/BeaconManager");

delete_recursive("/system/system/priv-app/EasySetup");

delete_recursive("/system/system/priv-app/MateAgent");

delete_recursive("/system/system/priv-app/SamsungSocial");

delete_recursive("/system/system/priv-app/Turbo");

delete_recursive("/system/system/priv-app/SamsungDigitalWellbeing");

delete_recursive("/system/system/priv-app/GoogleBackupTransport");

delete_recursive("/system/system/priv-app/GoogleFeedback");

delete_recursive("/system/system/priv-app/GoogleOneTimeInitializer");

delete_recursive("/system/system/priv-app/GooglePartnerSetup");

delete_recursive("/system/system/priv-app/GoogleRestore");

delete_recursive("/system/system/priv-app/GoogleServicesFramework");

delete_recursive("/system/system/priv-app/Phonesky");

delete_recursive("/system/system/priv-app/CocktailBarService_v3.2");

delete_recursive("/system/system/priv-app/DocumentsUI");

delete_recursive("/system/system/priv-app/HotwordEnrollmentOKGoogleCORTEXM4");

delete_recursive("/system/system/priv-app/HotwordEnrollmentXGoogleCORTEXM4");

delete_recursive("/system/system/priv-app/LedBackCoverAppBeyond");

delete_recursive("/system/system/priv-app/PeopleStripe");

delete_recursive("/system/system/priv-app/SamsungAccount_Star");

delete_recursive("/system/system/priv-app/SamsungDeviceHealthManagerService");

delete_recursive("/system/system/priv-app/SamsungVideoPlayer2016");

delete_recursive("/system/system/priv-app/AREmoji");

delete_recursive("/system/system/priv-app/SamsungContacts");

delete_recursive("/system/system/priv-app/SamsungDialer");

delete_recursive("/system/system/priv-app/SamsungMessages_10.0");

delete_recursive("/system/system/priv-app/SecLiveWallpapersPicker");

delete_recursive("/system/system/priv-app/StickerStamp");

delete_recursive("/system/system/priv-app/StoryService");

delete_recursive("/system/system/priv-app/GmsCore");

delete_recursive("/system/system/priv-app/PhotoStudio_Beyond_Full");

delete_recursive("/system/system/priv-app/RubinVersion23");

delete_recursive("/system/system/priv-app/ThemeCenter");

delete_recursive("/system/system/priv-app/ThemeStore");

delete_recursive("/system/system/priv-app/StoryService");

delete_recursive("/system/system/priv-app/GmsCore");

delete_recursive("/system/system/priv-app/DexCommunity");

delete_recursive("/system/system/container");

delete_recursive("/system/system/preload");

delete_recursive("/system/system/preloadFotaOnly");

delete_recursive("/system/system/app/BBCAgent");

delete_recursive("/system/system/app/MDMApp");

delete_recursive("/system/system/app/mldapchecker");

delete_recursive("/system/system/app/SamsungPassAutofill_v1");

delete_recursive("/system/system/app/SecurityLogAgent");

delete_recursive("/system/system/app/UniversalMDMClient");

delete_recursive("/system/system/priv-app/FotaAgent");

delete_recursive("/system/system/priv-app/KLMSAgent");

delete_recursive("/system/system/priv-app/knoxanalyticsagent");

delete_recursive("/system/system/priv-app/KnoxCore");

delete_recursive("/system/system/priv-app/SamsungPass");

delete_recursive("/system/system/priv-app/SKMSAgent");

delete_recursive("/system/system/priv-app/SOAgent");

delete_recursive("/system/system/priv-app/SecureFolder");

delete_recursive("/system/system/priv-app/Fast");

delete_recursive("/system/system/priv-app/Bixby");

delete_recursive("/system/system/priv-app/BixbyAgentStub");

delete_recursive("/system/system/priv-app/BixbyHome");

delete_recursive("/system/system/priv-app/BixbyService");

delete_recursive("/system/system/priv-app/BixbyWakeup");

delete_recursive("/system/system/priv-app/SettingsBixby");

delete_recursive("/system/system/priv-app/SystemUIBixby2");

delete_recursive("/system/system/priv-app/Routines");

delete_recursive("/system/system/priv-app/BixbyVisionFramework3");

delete_recursive("/system/system/app/VisionIntelligence3");

ui_print("Installing files...");

package_extract_dir("system", "/system/system");

ui_print("Installation complete!");