How can a user delete attachments in Power Apps? When I select attachments to delete, they appear to delete but are present when form is reopened.

How can a user delete attachments in Power Apps? When I select attachments to delete, they appear to delete but are present when form is reopened.
I believe you can do this with a gallery using an icon and the following code:
Remove(AttachmentControlName.Attachments, ThisItem)
When I test this using the attachment control it lets me delete attachments. Not sure why you arent able to. I have an attachment card in a form used to store 1 attachment that is uses as the profile picture for my users. When I click the x to remove the image it shows it as 'queued to remove' and is greyed out. My submit button uses this code: SubmitForm(Profile_EditUserInfoForm); and it removes it correctly.
That being said if you dont want to use that or cant get it to work then as far as I know there is no other way to delete attachments in Power Apps. You would more than likely need to use Power Automate. There is a delete attachment function for sharepoint that takes the site address, list name, items id, and the name of the file/attachment.