Hello - Happy New Year! I have been looking for a script of "auto delete files once the device has restarted"
I found this script but it seems not to be working..
# Fetch the target user if desired, otherwise use the currently logged in user.
if [ "$4" != "" ]; then
TargetUser=$4
else
TargetUser=$3
fi
echo "Target user is $TargetUser."
# Delete common user spaces of the targetted user.
rm -Rf /Users/$TargetUser/Desktop/*
rm -Rf /Users/$TargetUser/Documents/*
rm -Rf /Users/$TargetUser/Downloads/*
rm -Rf /Users/$TargetUser/Applications/*
rm -Rf /Users/$TargetUser/.Trash/*
exit 0 