Many ways to possible do this.
You could use the exex node to read the directory and then create a drop down that lists the files. You could then select the file and show a notification to confirm delete. Then reread the directory to refresh the drop down.
e.g.
[{"id":"34616e52c802c16f","type":"ui_ui_control","z":"b9860b4b9de8c8da","name":"","events":"all","x":420,"y":60,"wires":[["c3682381e6552931"]]},{"id":"c3682381e6552931","type":"switch","z":"b9860b4b9de8c8da","name":"","property":"name","propertyType":"msg","rules":[{"t":"eq","v":"Home","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":550,"y":60,"wires":[["901eb24a764b0511"]]},{"id":"901eb24a764b0511","type":"exec","z":"b9860b4b9de8c8da","command":"ls .node-red/static/files","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"","x":730,"y":60,"wires":[["d3356343d785da61"],[],[]]},{"id":"1cbfdc3f03ec2a91","type":"file","z":"b9860b4b9de8c8da","name":"","filename":"topic","filenameType":"msg","appendNewline":true,"createDir":false,"overwriteFile":"delete","encoding":"none","x":1050,"y":160,"wires":[["2706439caf889a08","901eb24a764b0511"]]},{"id":"973484de1628b7ea","type":"switch","z":"b9860b4b9de8c8da","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"OK","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":930,"y":160,"wires":[["1cbfdc3f03ec2a91"],["901eb24a764b0511"]]},{"id":"d3356343d785da61","type":"change","z":"b9860b4b9de8c8da","name":"","rules":[{"t":"set","p":"options","pt":"msg","to":"[$split($$.payload, \"\\n\")[$ != \"\"]]","tot":"jsonata"},{"t":"set","p":"payload","pt":"msg","to":".node-red/static/files/","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"path","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":20,"wires":[["a741327ae4d4610e","1a724cf5683b053f"]]},{"id":"2706439caf889a08","type":"debug","z":"b9860b4b9de8c8da","name":"debug 328","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":220,"wires":[]},{"id":"f29677a93df3ac9c","type":"ui_toast","z":"b9860b4b9de8c8da","position":"dialog","displayTime":"3","highlight":"","sendall":false,"outputs":1,"ok":"OK","cancel":"Cancel","raw":false,"className":"","topic":"","name":"","x":790,"y":160,"wires":[["973484de1628b7ea"]]},{"id":"a741327ae4d4610e","type":"ui_dropdown","z":"b9860b4b9de8c8da","name":"","label":"","tooltip":"","place":"click to delete file","group":"8b5cde76.edd58","order":15,"width":0,"height":0,"passthru":true,"multiple":false,"options":[{"label":"","value":"","type":"str"}],"payload":"","topic":"file","topicType":"str","className":"","x":960,"y":80,"wires":[["1a724cf5683b053f"]]},{"id":"1a724cf5683b053f","type":"join","z":"b9860b4b9de8c8da","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":1110,"y":60,"wires":[["51b7b43642ca03f8"]]},{"id":"829252eea2554b28","type":"change","z":"b9860b4b9de8c8da","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"$$.payload.path & $$.payload.file","tot":"jsonata"},{"t":"set","p":"payload","pt":"msg","to":"confirm deletion","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":160,"wires":[["f29677a93df3ac9c"]]},{"id":"51b7b43642ca03f8","type":"switch","z":"b9860b4b9de8c8da","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"file","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":450,"y":160,"wires":[["829252eea2554b28"]]},{"id":"8b5cde76.edd58","type":"ui_group","name":"default","tab":"8f03e639.85956","order":1,"disp":false,"width":"12","collapse":false},{"id":"8f03e639.85956","type":"ui_tab","name":"Home","icon":"dashboard","order":3,"disabled":false,"hidden":false}]
You will need to edit the path in the exec node and the following change node.