"inArray requires at least 1 value" error deleting files with uploadthing

Hey, getting an error that I'm unable to resolve, it says there's no values specified but there's clearly one in the input
Mutation code attached
thanks for any help!
image.png
image.png
Solution
You can't delete file using the URLs, you need the file key:

utapi.deleteFiles("https://utfs.io/f/file-key-uuid.png"); ❌

utapi.deleteFiles("file-key-uuid.png"); ✅
Was this page helpful?