lane
06/23/2025, 3:55 PMconst options: CreateBinaryOptions = {
contentType: 'application/json',
filename: 'manifest.json',
data: JSON.stringify(manifest, null, 0),
};
const attachment = await medplum.createAttachment(options);rahul1
06/23/2025, 4:21 PMrahul1
06/23/2025, 4:21 PMrahul1
06/23/2025, 4:22 PMstorage.medplum... urls, whcih can't immediately be used with deleteResourcerahul1
06/23/2025, 4:24 PMhttps://storage.medplum.com/binary/<id>/<version>?....
You'll want to extract the <id> from this url, and then call medplum.deleteResource('Binary', <id>)lane
06/23/2025, 4:29 PMrahul1
06/23/2025, 4:34 PMrahul1
06/23/2025, 4:34 PMstorage.... url would correspond to a Binary resourcerahul1
06/23/2025, 4:35 PMlane
06/23/2025, 4:35 PMrahul1
06/23/2025, 4:36 PMrahul1
06/23/2025, 4:36 PMBinary resourcelane
06/23/2025, 4:37 PMlane
06/23/2025, 4:38 PM{
"url": "https://customer.my-elixir.local/storage/019797d5-571a-73e9-9ef2-90d5461dc3e1/019797d5-571a-73e9-9ef2-973b2f658a93?Expires=1750700271640&Signature=X43SO2pnoSR83mp6K76ZYXdQXf%2BgYB%2FZlX2VZUCpM3fZ22TgkYFk6NM7kLL3Bhw03iOz0zwMlOXc217cqvBEjYqNh5O2uKOIcAQbR2%2BM5UQX%2FesU0Gx%2BDNxdy0axBMk%2BETw9oNgfacoOIDv8sQOpaf1SonF0uVtHF7JcoTGw4UNNqbX5eRoFeyoHET40lpSJyP4JGGTNpVj4sjR%2F38713K%2BFF%2BhwL7Vc7A9StjgW3Ubjq%2BZDkn3Xy4YvcmXkeLzuAEfNLbA2UuKZxISURsensjGnLtnklkn01EBpEFqHql72WRD36rfd%2F%2BT1Ztf%2FBG8YiwEX96QSHOzvqa5Ph91vzg%3D%3D",
"title": "esbuild-script.mjs"
},lane
06/23/2025, 4:39 PMrahul1
06/23/2025, 4:47 PMBinary/019797d5-571a-73e9-9ef2-90d5461dc3e1?lane
06/23/2025, 5:03 PMlane
06/23/2025, 5:04 PM