Thanks Carmel, I managed it. The URL where you add the deleteattachment method has to bear the ID of the attachment, though, not the ID of the feature.
Is a GUI planned to allow Survey123 users, that may not be IT-literrate enough, to manage their attachments?