I have sucessfully developed a suite of tools to enable colleagues to create duplicates from templated webmaps and counterpart feature layers using the clone_items() command with the source and target portal being the same.
I have now moved on to attempting the same thing with survey 123 forms. What I have discovered is it works fine, but just once! The second time I try and run it, it fails with an error message stating a zip file with the same name as the survey 123 form already exists!
I can only assume the creation of this zip is part of what the clone process needs to do behind the scenes (just for Survery 123), but the issue is that once the clone has completed, the zip file evidently doesn't get deleted. Worse still I cannot see or find this zip file in my content anywhere (via the AGOL GUI or a list of portal items via python) to be able to manually delete it.
Any help in finding where it is hidden so I can clean up after the clone would be much appreciated.