Hello. Apologies in advance if this is
# dev
l
Hello. Apologies in advance if this is just noise. I'm trying to delete an attachment with
medplum.delete(attachment.url)
but I repeatedly get 404 error - Not found. However, I can download the attachment just fine using the same url. The attachment is created in a self-hosted environment with the code below. As mentioned, I can download it but cannot delete it.
Copy code
const options: CreateBinaryOptions = {
          contentType: 'application/json',
          filename: 'manifest.json',
          data: JSON.stringify(manifest, null, 0),
        };

const attachment = await medplum.createAttachment(options);
r
No worries @lane ! Would it be possible for you to do post in #1094022380659155005 ? Also include if you are on hosted or self-hosting and on which platform.
155 Views