Paulo & Seema: refactored to delete partial files