Skip to content

Cannot delete names attribute #345

Description

@mankatmalte-dev

I am currently trying to overwrite all attributes from an external Excel list.
As part of this process, I need to delete the existing attributes before writing the new ones.
So far, I can successfully delete other attributes such as user attributes, comments, and groups using methods like:
First: ac.get_comment_list_items() and then ac.delete_item_from_comment_list()
I can’t find a corresponding function for deleting names (or a way to clear/overwrite them). I’ve searched the documentation but haven’t found anything that covers deleting or resetting the names attribute.
Is there any workaround ?
Thanks!

Activity

  1. usai-sylvain commented on Apr 9, 2026

    @usai-sylvain

    Setting the name to an empty string usually does the trick :

    ac.set_name(element_ids, "")

    before :

    Image

    after :

    Image
  2. mankatmalte-dev commented on Apr 9, 2026

    @mankatmalte-dev
    Author

    Hey, thanks for the reply! That’s not exactly what I’m trying to overwrite, though.
    When you create a new element, there’s a built‑in list of names you can choose from. I’ve figured out how to add new names to that list through code, but I haven’t been able to figure out how to remove the existing ones.
    Is there a way to delete or override the default names programmatically?
    Thanks!
    Image

    Image
  3. Brunner246 commented on Apr 9, 2026

    @Brunner246
    Contributor

    you could try with this.

    Image
  4. usai-sylvain commented on Apr 9, 2026

    @usai-sylvain

    @Brunner246 I think @mankatmalte-dev wants to delete a name, not add one.

    The followings are available, just not for names :

    Image
  5. mankatmalte-dev commented on Apr 9, 2026

    @mankatmalte-dev
    Author

    @usai-sylvain you got it !

  6. locked and limited conversation to collaborators on Apr 15, 2026
  7. converted this issue into a discussion #349 on Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions