@boston85719 has the right of it, youâre going to want to set up an API Workflow in your Backend Workflows to handle this.
What youâll want to do first is enable Backend Workflows in your project, if you havenât already. This can be easily done via Settings â API â âEnable Workflow API and backend workflowsâ
Once youâve done that, youâll be able to see âBackend Workflowsâ in your list of pages, nicely tucked away at the bottom.
Here we can create a âNew API workflowâ and add a new parameter.
You can call this whatever you like, but make sure you have the correct data type selected!
Make sure youâve not set this as âIs a list/arrayâ as we need to process images one at a time.
Final step for this workflow is just adding the âDelete an uploaded fileâ action with the URL being âhttps:[parametername]'s URLâ. (Youâll want to add the âhttps:â yourself as that is usually omitted)
Now thatâs done, go back to your delete function and add the action Custom Events â âSchedule API Workflow on a listâ.
Point it to your newly made API Workflow and set the âList to run onâ as your itemâs list of images.
Finally, set the value of your parameter to be âThis imageâ and youâre good to go! (Example below)
When this button is pressed, the system will go through each image, one at a time and delete them all for you 
Please let me know if you have any questions about this!