This is the code I use to delete files.
await Parse.Cloud.httpRequest({
url: `http://serverIPadress:1337/parse/files/${filename}`,
method: 'DELETE',
headers: {
'X-Parse-Master-Key' : 'YourMasterKey',
'X-Parse-Application-Id': 'YourAppId'
}
});
Try it. It works for me with S3 Storage adapter. Also was working with Minio Storage adapter.
Source: How to delete a file
edit:
I don’t think so. Files and ParseObjects has no connection