anyone who's used the `awss3` package. I'm struggl...
# cfml-general
a
anyone who's used the
awss3
package. I'm struggling to find a function to delete an object. I'm uploading using
uploadFile()
as documented here https://helpx.adobe.com/uk/coldfusion/using/integrate-coldfusion-amazon-s3.html but struggling to see a method for deleting a particular object (not a bucket)
to add; I can't use
s3legacy
package as for whatever reason it doesn't seem to work on my server
b
There isn't a delete method for S3 yet and it seems to have been pushed back to Lucee 6.3 - https://luceeserver.atlassian.net/browse/LDEV-3379
a
not using Lucee, but that's annoying 😞
b
ahh, yeah, sorry...
a
a
Thanks but I've already refactored a bunch of my code to use the native awss3 package now 😐
I stupidly assumed it would have some functionality as simple as deleting an object
💯 1
🙌 1
a
Ah OK. What a pain. I'm going the other way and replacing stuff with 3rd party (cfspreadsheet / aws etc) just means we're not locked into vendor updates on a whim
a
yeah hoping I can just get by with not deleting stuff for the time being
a
download the bucket, delete the bucket, upload the bucket without that one object 😄
🙃 1
😂 1
a
seems legit 🙂
🙌 1
b
There is also https://forgebox.io/view/s3sdk which supports Adobe and Lucee and I use it on several client projects.
👍 2
g
Welcome to the club I am stuck at same place no delete I am trying some other ways now
j
You could install the AWS CLI in your OS and use cfexecute. 🤷🏻‍♂️
b
@Alan - I suggest opening a ticket in the Bug Tracker. This is a pretty big oversight in the package and one that the CF team should be able to add in an update release (rather than waiting until CF2025/6).