#!/usr/bin/python3

import os
import sys

if not os.getuid() == 0:
    print ("This command needs to be run as root or with sudo.")
    sys.exit(1)

if os.path.exists("/etc/cron.daily/pearlupdate"):
    os.system("rm -f /etc/cron.daily/pearlupdate")
    print("Cron job /etc/cron.daily/pearlupdate deleted.")

