It took over an hour, but will save a ton of time in future publishing. Here is the final purge process I used.
WARNING: THIS WILL INVALIDATE AND REMOVE YOUR COMMIT HISTORY
WARNING: DO AT YOUR OWN RISK ON A COPY OF THE ORIGINAL PROJECT
WARNING: I AM SHARING PERSONAL RESULTS I AM NOT RESPONSIBLE IF YOU BREAK YOUR PROJECT WHILE TRYING THIS
- Open %userprofile%\.zapparstudio\~PROJECT~\current.json in Notepd++
- Do a regex replace (without the ’ ‘) Find:’,’ Replace:’\r\n’
- Create a new folder in the project named store.backup
- Find GUID names after every ‘:’ in the current.json and move from store to store.backup
- Delete all files left in the store folder
- Move all structure.json and editor.json UUID files from store.backup to store
- Open all the structure.json UUID files in Notepad++ search for all etag and move all UUID files from store.backup to store
- Now we need to remove all items not moved from the store.backup from the current.json file
- Go one by one copy the name from explorer, Find in Notepad++, delete all found lines
- Once all unused files have been removed from the current.json we need to return it to the original 1 line form
- Regex Find:’\r\n’ Replace:’,’
- Check to ensure there are no extra , and save the file.
- Open the project and publish
- Delete all dated .json files (YYYY-MM-DD-HH-MM-SS.json) and the snapshots.json