How to reset widget when upload is complete?

Hello.

There’s an undocumented API method you can use to clear the uploader from uploaded files:

const ctx = document.querySelector('uc-upload-ctx-provider');
const api = ctx.getAPI()
api.uploadCollection.clearAll();

Give it a try an let me know if it worked for you.

Best regards.