cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting an item

Pioneer
Pioneer

How can I delete an item?

 

when i use ITEM_delete_item it says that the item is referenced

10 REPLIES

Re: Deleting an item

If item is referenced or used in any structure (assembly), you will not be able to delete it until you remove the references where it is used. Not sure about it with DBA role.

 

Ganesh Kadole, QA Analyst (PLM), SQS
Testing: NX 10 | NX 11 | Teamcenter-NX Integration
Teamcenter 11.2 | TC Vis 11.3 | Active Workspace 3.2

Re: Deleting an item

Pioneer
Pioneer

I deleted the item revision and When I try to delete the item itself I get the error message saying"The instance is referenced"

Re: Deleting an item

Phenom
Phenom
Did you check if Impact analysis shows any references of item ?

Re: Deleting an item

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

I assume you've used POM_referencers_of_instance ITK function before ITEM_delete_item. what are the referenced classes listed by POM_referencers_of_instance?

 

Harish

 

Re: Deleting an item

Valued Contributor
Valued Contributor

you can check referenced item in My Teamcenter as Analysis tab by double clicking on the item and find out in which assembly it is used, once you removed the reference from that structure or assembly, then you can delete an item from TC.

RRG

Deleting an item

Pioneer
Pioneer

Yeah, How do I find out the instances and delete it?

Re: Deleting an item

Legend
Legend

Select the item revision and check "where referenced" in Impact Analysis tab for all level,

and then you delete those references, after that you can delete that Item easily.

 

Hope this will help you,

Re: Deleting an item

Pioneer
Pioneer

I want to do the same thing using ITK functions

Re: Deleting an item

Genius
Genius

Be careful how you word your solution/suggestion...

 

".....then you delete those references....."

 

You don't want to delete those references, you would need to delete how the item is referenced (as appropriate):

  1. If reference is to the folder, then you would want to remove item from the folder,
  2. If reference is to another object (in some specification/reference or some other relation), then you would want to cut the reference from the other object,
  3. If reference is to the BOM, then you would want to remove the item from the BOM.
  4. Etc...

Programatically you would use WSOM_where_referenced function and then loop through those references and "clean" those references as appropriate.

---

Thanks and Regards

Yogesh Fegade