service.files().update(fileId=file_id, addParents='root', removeParents=dir_id
    ).execute()
service.files().delete(fileId=dir_id).execute()
How to delete multiple files at once using Google Drive API