The deregistration procedure can be triggered by AMF due to some timer in AMF. However, these scenarios you mention are also important, and we’ll consider these features. Thanks.
I’d really appreciate some tech help here with the free5gc API
i.e. an actual ‘curl’ example how to send such request to AMF (doesn’t matter is from external Linux or from one of the NFs)