To remove an uploaded disk image with content type “import”, the user needs the Datastore.AllocateSpace privilege on the storage. The docs don’t list it for delete, but that’s what actually works.

The Missing Privilege
Proxmox’s permission model is built around paths and roles. For storage, the relevant path is /storage/{storage}. The Datastore.AllocateSpace privilege is normally for allocating space on a datastore, but it’s also required to delete an image that was uploaded as content type “import”. Without it, the delete fails with a permission error even if you have Datastore.Allocate or Datastore.Modify.
What the Error Looks Like
When you try to delete the image from the GUI, you get a generic “permission denied” message. The API call returns a 403 with something like:
Permission check failed (path /storage/local, Datastore.AllocateSpace, ...)
That’s the tell. The docs for storage privileges (https://pve.proxmox.com/pve-docs/chapter-pveum.html#pveum_roles) don’t mention “import” content type for delete, so you won’t find it there.

Fix It
- Go to Datacenter → Permissions → Roles.
- Create a custom role, say “ImageDelete”, with Datastore.AllocateSpace.
- Assign that role to the user or group on the specific storage path (e.g., /storage/local).
Or if you’re using the API, add the privilege to the user’s role. Then the delete works. No need to give full Datastore.Admin.
My Take
This is a weird one. AllocateSpace for delete? Sounds backwards, but it’s how the permission check is coded. I’d just create a minimal role for this one task instead of granting broader storage rights. Less to clean up later. If you’re dealing with other Proxmox permission quirks, check out Proxmox Default EFI Storage: Set It via API or Config File.