#!/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/mintupdate"):
    os.system("rm -f /etc/cron.daily/mintupdate")
    print("Cron job /etc/cron.daily/mintupdate deleted.")

