# Remove coordinate system from Spatialdata

**URL:** <https://discourse.scverse.org/t/remove-coordinate-system-from-spatialdata/2204>\
**Category:** spatialdata\
**Created:** [April 9, 2024, 12:07pm UTC](https://discourse.scverse.org/t/remove-coordinate-system-from-spatialdata/2204 "2024-04-09T12:07:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![grst](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/grst/32/17_2.png) [@grst](https://discourse.scverse.org/u/grst)\
**Post date:** [April 9, 2024, 12:07pm UTC](https://discourse.scverse.org/t/remove-coordinate-system-from-spatialdata/2204/1 "2024-04-09T12:07:42Z")

</div>

How can I remove a coordinate system from a SpatialData object?  
I have a Visium SpatialData object that looks like this:

```auto
SpatialData object with:
├── Images
│ └── 'SAMP427_16_hires': SpatialImage[cyx] (3, 2000, 2000)
├── Shapes
│ └── 'SAMP427_16': GeoDataFrame shape: (4919, 2) (2D shapes)
└── Tables
      └── 'table': AnnData (274, 18922)
with coordinate systems:
▸ 'SAMP427_16', with elements:
        SAMP427_16_hires (Images), SAMP427_16 (Shapes)
▸ 'downscaled_lowres', with elements:
        SAMP427_16 (Shapes)
▸ 'global', with elements:
        SAMP427_16 (Shapes)

```

how can I only retain the `SAMP427_16` coordinate system? I tried `.filter_by_coordinate_system`, but it only filters the respective elements, but not the coordinate system itself.

---

<div class="post-metadata">

**Author:** ![melonora](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/melonora/32/1000_2.png) [@melonora](https://discourse.scverse.org/u/melonora)\
**Post date:** [April 9, 2024, 1:11pm UTC](https://discourse.scverse.org/t/remove-coordinate-system-from-spatialdata/2204/2 "2024-04-09T13:11:13Z")

</div>

Hello,

Currently we have the API documented here for this:  
[spatialdata.transformations.remove\_transformations\_to\_coordinate\_system — spatialdata (scverse.org)](https://spatialdata.scverse.org/en/latest/generated/spatialdata.transformations.remove_transformations_to_coordinate_system.html#)

[spatialdata.transformations.remove\_transformation — spatialdata (scverse.org)](https://spatialdata.scverse.org/en/latest/generated/spatialdata.transformations.remove_transformation.html)

The top one is the one you need, but the bottom one can come in handy if you only want to do this for a particular element.
