I am unable to delete the trashed space because it contains projects, which is fine, but I don’t see the option to untrash it so I can follow the proper steps.
Any guidance on how to resolve this?
I am unable to delete the trashed space because it contains projects, which is fine, but I don’t see the option to untrash it so I can follow the proper steps.
Any guidance on how to resolve this?
Hey!
The UI doesn’t expose an “untrash” option for Spaces directly, it’s a known gap. But you have two viable paths:
O1:
The “Resource.restore” operation restores the given resource and any directly trashed ancestors from the trash. If the resource is not trashed, the operation is simply ignored.
You can call it via cURL with your space’s RID:
curl -X POST \
-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/filesystem/resources/{spaceRid}/restore?preview=true"
Or using the Python SDK:
client.filesystem.Resource.restore(resource_rid, preview=None)
O2: if your goal is full cleanup rather than restoration, delete the projects inside the space first, then delete the space.
A: The restore UI is available at the Project level (via the Trash tab inside a project), but Spaces sit one level above Projects and don’t have the same trash management UI. The API is currently the only self-service path for restoring a trashed Space.
Felipe Montes
Development Advisor
Follow me @ Linkedin: Felipe Montes; or GitHub: Brazillianerd
Just want to provide an update.
I managed to find the option; it was kind of hidden in plain sight. ![]()
To find this page/url → Go to your trashed space.
Control Panel → Space Management (left-bar nav) → Click on your Trashed space → Actions → View
Copy the url
https://foundry-zzz.palantirfoundry.com/workspace/control-panel/enrollment/ri.control-panel.main.customer.604cee65-ce50-40f3-a8a7-7147bf39bba8/space-management/ri.compass.main.folder.806916bd-3ba2-4d56-bacc-9b3bbc257c96/details
From the url copy only the ri-id which is here ri.compass.main.folder.806916bd-3ba2-4d56-bacc-9b3bbc257c96
now navigate the trashed folder
https://foundry-zzz.palantirfoundry.com/workspace/compass/view/ri.compass.main.folder.806916bd-3ba2-4d56-bacc-9b3bbc257c96