first working v. of delete.py