Implement pid deletion and downloading