SOLVED, it appears the issue was with my server and not this script. Since there is over 1,000 files it took longer to delete than my FTP manager lead me to believe. Why does this app have over 1,000 files? Seems like a bit much for a site that just uses moneypot API. API is supposed to make things lightweight...
Untitled Dice consists of three files (app.js, index.html, style.css) and about a dozen dependency files found in the vendor and node_modules folders. The rest of those files are nonessential cruft managed by Git and its package manager.
1500+ files are in the ".git" directory that Git creates whenever you clone a project. This folder contains all of the revisions made to a project over time and is only necessary for development purposes, so avoid pushing it to your production server.
1000+ files are in the "node_modules" directory. Untitled Dice uses a package manager called NPM to maintain that folder of dependencies. Even though Untitled Dice only uses 9 files within that folder, the NPM tool populates it with all the development files that each dependency comes with. You can see the actual files that Untitled Dice depends on right here:
https://github.com/untitled-dice/untitled-dice.github.io/blob/master/index.htmlOne quick solution would be to zip the untitled-dice directory, FTP it to your server, and then unzip it there.
I'll look into isolating Untitled Dice's dependencies to make life easier for this workflow.
