Delete folder will not delete a zip file, "directory name is in valid"?

I download a folder from the web, unzip the contents and place them in a different folder, and then I want to delete the original zip folder. I keep getting the following error that the directory name is invalid for the delete activity.

The filepath works for the extract activity because my new files appear in the destination folder, so I don’t know why it won’t delete.


I am using StudioX and this is my code:

Hi hbo,

Can you try delete file instead of delete folder?