How to delete (tmutil delete) all old backups from TimeMachine - keep only current full backup
#!/bin/bash
latest=$(sudo tmutil latestbackup)
sudo tmutil listbackups | while read backup; do
    if [[ "$backup" != "$latest" ]]; then
        echo sudo tmutil delete "$backup"
    fi
done


Remove the echo once you are sure that the output is correct.