problems with script in video 8 on rigging for production
I am working through video 8 in the course and at the end when trying to run the completed script the DeleteHistory continues to give me the error "Error: Invalid flag '-shape" I'm not sure why it is doing this. The rest of the script runs fine. I'm attaching the script I put together while following the video. Please tell me if it is something I did wrong.
Below is my code: