#!/usr/bin/env python3 from sms import get_sms from subprocess import call from os.path import basename for sms in get_sms(): print(sms) call(["mmcli", "-m", "any", "--messaging-delete-sms", sms[0]])