intercom-ruby: Unable to delete custom_attributes fields
I couldn’t figure out how to permanently delete a custom_attribute set in a User model.
Doesn’t work:
i_user.custom_attribute['foobar'] = nil
intercom.users.save(i_user)
i_user.custom_attribute.delete('foobar')
intercom.users.save(i_user)
There ought to be a way to delete fields.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (3 by maintainers)
I am chiming in here. Not supporting deletion of custom attributes is… Silly.
You can archive it from the UI in the settings.
Ahh bummer, thank you for the heads up. Just sneak a
DELETE
REST call in there sometime and let me know 😉If there’s a hard limit on the number of custom attributes you can have, you really need a way to delete old attributes. Otherwise, there will inevitably be tons of customers running up against a concrete wall with no way to fix it.
I also think the ability to delete attributes should be implemented. I misspelled an attribute and sent it through and now its there forever?
You don’t have to hard delete them. Just soft delete and don’t display them anywhere to the user. Or make the archived ones hidden by default and add a button to display them… Just throwing ideas around.
Another vote for being able to delete custom attributes. Things are bound to get messy over time if only “archive” is available.
@RuairiK is this still the case? I would love to be able to clean up some old fields. Archive is definitely a good idea but without delete things become messy for a long running application relying on Intercom
Oh this is not about delete but change the attribut type…
hi, let me introduce you how to change the type of the custom attribute. Take a look… take a look in type column you can edit the type integer to string no need to introduce the new field