# Clear type name of a PrimSpec in Python

**URL:** <https://forum.aousd.org/t/clear-type-name-of-a-primspec-in-python/2023>\
**Category:** USD\
**Tags:** python\
**Created:** [November 25, 2024, 1:02pm UTC](https://forum.aousd.org/t/clear-type-name-of-a-primspec-in-python/2023 "2024-11-25T13:02:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mreinhard](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@mreinhard](https://forum.aousd.org/u/mreinhard)\
**Post date:** [November 25, 2024, 1:02pm UTC](https://forum.aousd.org/t/clear-type-name-of-a-primspec-in-python/2023/1 "2024-11-25T13:02:45Z")

</div>

Hello,

I am reading in a USD file using only the Sdf API (i.e. I would like to avoid to create a stage object) and would like to clear the typeName of a specific PrimSpec.  
The ‘ClearTypeName()’ method seems not to be exposed in the Python API and setting the typeName to “” result in the Error  
…/primSpec.cpp : 'Cannot set empty type name on prim '…  
What would be the correct way to do this ?

Many thanks!  
Marcel

---

<div class="post-metadata">

**Author:** ![nvmkuruc](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@nvmkuruc](https://forum.aousd.org/u/nvmkuruc)\
**Post date:** [November 25, 2024, 8:41pm UTC](https://forum.aousd.org/t/clear-type-name-of-a-primspec-in-python/2023/2 "2024-11-25T20:41:11Z")

</div>

@mreinhard Have you tried calling [SdfSpec::ClearInfo](https://openusd.org/release/api/class_sdf_spec.html#ad5a0d94f0ac661acb29d7490eb15d6d6) with `"typeName"` as the key?

---

<div class="post-metadata">

**Author:** ![mreinhard](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@mreinhard](https://forum.aousd.org/u/mreinhard)\
**Post date:** [November 25, 2024, 8:55pm UTC](https://forum.aousd.org/t/clear-type-name-of-a-primspec-in-python/2023/3 "2024-11-25T20:55:31Z")

</div>

Awesome! I had not tried tried that and that worked nicely!  
Thank you very much, @nvmkuruc !
