How to use MyEntityType.remove() in python


#1

I know in python, we need to use keyword argument.

I checked c3ShowType(Persistable) and saw that remove(spec). spec is an UpsertSpec.

However, I don’t know how to construct my dictionary for a UpsertSpec to achieve the following in python.

c3.MyType.remove("my_id")


#2

remove is a member function. so you should be calling it on an instance of your type: c3.MyType(id='my_id').remove() and c3.MyType.remove(this=c3.MyType(id='my_id')) should both work


#3

c3.MyType.remove(this = {"id": "XXX"}) works.