This is one of those weird questions where it may have already been discussed, but hidden behind unexpected subject terms. If this is the case, can you please supply a link? Thanks.
So I've been playing around with the idea of assigning objects to context variables (as well as collection fields). For example:
UpdateContext(myContextVariable, First(Filter(myCustomerSPList, ID=100)))
Once I've assigned myContextVariable to this item, I can refer to my customer as myContextVariable.FirstName. This is my intention. Now, I run some subsequent filters based on this data, so at some point, I'd like to clear out this data.
If I type in Clear(myContextVariable), I get an error because it's not a "collection" data type. If I type UpdateContext(myContextVariable, ""), I also get an error because it's not a "text" data type. It's an "object" data type. How do you clear that? Thanks.
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-updatecontext