easiest way to remove Apple's preinstalled Apps

ImAMacGuy
Valued Contributor II

We've ben finding that Apple's pre-loaded apps (Numbers, Pages, garage band, etc) are flagging as having updates, despite the App Store being locked down and the machine's enrolled in DEP. What's the easiest way to remove those preinstalled apps so they don't prompt for updates in the future?

I can do a simple script to remove the .app form /Applications, but I'm sure there's PLISTS and other files stashed all over.

4 REPLIES 4

Asnyder
Contributor III
#!/bin/bash

PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin export PATH

# set -xv; exec 1>>/tmp/delete_PKNGBiMTraceLog 2>&1

#----------------------------------------------------------------------------------------------------------------------------------                                                                     
#   delete_PKNGBiM      
#   Copyright (c) 2017 Apple Inc.
#   
#   
#   This script deletes Pages, Keynote, Numbers, GarageBand and iMovie from the Applications folder
#


#-------------------------------------------------------------MAIN-------------------------------------------------------------------
# execute

# Version 1.0.0, 08-24-2017

declare -a apps_a

apps_a[0]="Pages.app"
apps_a[1]="Keynote.app"
apps_a[2]="Numbers.app"
apps_a[3]="GarageBand.app"
apps_a[4]="iMovie.app"

# loop through the apps
for i in "${apps_a[@]}"; do
    filePath="/Applications/${i}"

    # if the app exists, delete it
    if [[ -e "${filePath}" ]]; then
        rm -rf "${filePath}"
    fi
done

exit 0

I'm new to this, how do I run this kind of script in my Jamf admin?
I want to make room on our managed iPads and we don't use GarageBand anyway.

This is for macOS

ImAMacGuy
Valued Contributor II

@Asnyder awesome thank you! I will give it a whirl.