Prerequisites
Before removing cron jobs, make sure you have:
- SSH access to your VPS
- Backup of crontab if needed
Method 1: Remove Specific Line from Crontab
Connect to your VPS:
ssh hxroot@YOUR_SERVER_IP -p 22
crontab -e
Delete the line containing the cron job you want to remove, save, and exit.
Method 2: Remove All Cron Jobs
crontab -r
Confirmation is not asked - this immediately deletes ALL jobs!
To confirm before deleting:
crontab -i -r
Method 3: Backup Before Removing
crontab -l > /backup/crontab_backup_$(date +%Y%m%d).txt
crontab -r
Restore if needed:
crontab /backup/crontab_backup_20260428.txt
Method 4: Comment Out Instead of Removing
In crontab -e, add # at the beginning of the line:
# 0 2 * * * /backup/script.sh
This disables the job without deleting it.
Method 5: Remove Another User's Cron Jobs (Root)
sudo crontab -u username -r
✅ You can now remove cron jobs from your Hostxpeed VPS.