How to clear the new uploader?

How to clear the new file uploader? file-uploader@1/web/uc-file-uploader-minimal.min.js

i guess this is for the older upload version, it doesn’t work one the one i’m using:
i read an option

Hey there, the post you referred contained outdated instruction. I’ve just updated it. In v 1.x, you need to use the api object:

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

See File Uploader API — Uploadcare docs for more details.