IndustryInsights
2026-10-21 15:33:45

5GC Core Network AMF-Initiated Purge Procedure

5GC AMF Purge removes stale subscriber data and mobility management context after deregistration. This guide explains Nudm_SDM_Unsubscribe, Nudm_UECM_Deregistration, PurgeFlag, GUAMI and AMF context cleanup.

Becke Telcom

5GC Core Network AMF-Initiated Purge Procedure

A UE may remain absent from the network long enough for the AMF's implicit deregistration timer conditions to be met. At that point, the issue is no longer how the UE completes Registration, and there may not even be a NAS deregistration message that can still be delivered to the UE. The network instead has to decide what to do with the subscription data, mobility management context, and UDM subscription and registration state that the AMF still holds for that UE.

AMF Purge handles this cleanup stage. 3GPP defines the procedure as Purge of Subscriber Data in AMF. After implicit or explicit deregistration of the UE, the AMF may remove locally stored Subscriber Data and MM Context and terminate the related relationships it maintains with the UDM.

Purge analysis therefore should not restart from Registration Request, Authentication or Registration Accept. The focus is on how stale registration-related state is cleaned up between the AMF and UDM after the registration relationship has already ended.

Boundary Between Purge, Registration and Network-Initiated Deregistration

Purge is sometimes confused with Deregistration because it can follow an implicit deregistration condition, but the two procedures are not the same.

ProcedureMain PurposeTypical Signaling to Check
Initial RegistrationEstablish the registration relationship between the UE and 5GSRegistration Request / Accept
Network-Initiated DeregistrationTerminate an existing 5GS registration relationshipDeregistration Request and related cleanup signaling
AMF PurgeRemove stale subscriber data and MM Context from the AMF and clear related UDM stateSDM Unsubscribe and UECM Deregistration

In an implicit deregistration scenario, the UE may have been unreachable for an extended period, so the Purge procedure itself does not require UE participation. The absence of UE-side Registration or Deregistration NAS messages in a trace does not mean that Purge has not occurred.

More precisely, Deregistration determines that the UE no longer maintains the current 5GS registration relationship, while Purge removes the remaining AMF and UDM state associated with that relationship.

To review why the network terminates the UE's registration, see    5GC Core Network Network-Initiated Deregistration Procedure.    The Purge procedure continues from the AMF-side cleanup that follows deregistration.

Difference between Initial Registration, Network-Initiated Deregistration and AMF Purge in 5GC, with Purge occurring after deregistration to clean up AMF context and UDM relationships
Difference between Initial Registration, Network-Initiated Deregistration and AMF Purge in 5GC, with Purge occurring after deregistration to clean up AMF context and UDM relationships

AMF Purge Triggers and Cleanup Scope

A typical trigger occurs when the AMF-side timer conditions used for implicit deregistration are met. The network can no longer continue treating the UE as normally registered, so it proceeds with cleanup of the remaining context.

The AMF mainly needs to deal with two categories of state.

The first is Subscriber Data. During UE registration, the AMF may retrieve and store subscription data related to access and mobility management from the UDM. It may also establish an SDM Subscription so that the UDM can notify the AMF when relevant subscriber data changes.

The second is the MM Context. This context contains information the AMF uses to manage the UE's registration and mobility state. Once the UE no longer maintains the current registration relationship, this local context should not remain allocated indefinitely.

Purge therefore removes old state rather than creating new state. Typical cleanup includes:

  • Canceling the AMF's Subscriber Data subscription in the UDM;

  • Deregistering the AMF's UECM registration in the UDM;

  • Removing the UE Subscriber Data and MM Context stored locally in the AMF;

  • Aligning the UE registration state stored by the AMF with the actual deregistered state.

5GC AMF Purge removing Subscriber Data, MM Context, UDM SDM Subscription and UECM Registration so stale UE context is no longer retained
5GC AMF Purge removing Subscriber Data, MM Context, UDM SDM Subscription and UECM Registration so stale UE context is no longer retained

SDM Unsubscribe and UECM Deregistration Signaling

From an SBI trace perspective, the main AMF Purge signaling sequence is relatively short and is concentrated between the AMF and UDM.

Canceling the SDM Subscription

The AMF first needs to remove the Subscriber Data subscription that was created earlier. In an HTTP/2 trace, an operation similar to the following can be observed:

DELETE /nudm-sdm/v2/{SUPI}/sdm-subscriptions/{subscriptionId}

The UDM uses the Subscription ID to locate and delete the corresponding subscription relationship. After the subscription is removed, subsequent changes to the UE's Subscriber Data are no longer reported to that AMF through the deleted subscription.

Under normal conditions, the UDM can return 204 No Content to indicate that the subscription has been successfully removed.

Deregistering the AMF in UECM

The AMF then needs to update its registration state in UDM UECM. In a live network trace, this can appear as an update to the AMF 3GPP Access Registration resource, with the request carrying the GUAMI together with PurgeFlag=true.

The UDM checks the corresponding AMF registration record using the received information. If the GUAMI matches the stored serving AMF information, the Purge state is reflected in the registration data, indicating that the serving AMF has performed the required deregistration and cleanup for the UE.

After successful processing, the UDM can again return 204 No Content. At this point, the two main relationships between the AMF and UDM have been cleaned up:

  1. The SDM Subscription has been removed;

  2. The AMF Registration in UECM has completed the Deregistration/Purge handling.

Finally, the AMF removes the UE context stored locally and moves the corresponding registration management state to RM-DEREGISTERED.

5GC AMF Purge where the AMF first invokes Nudm SDM Unsubscribe to remove the UDM subscriber data subscription and then performs Nudm UECM Deregistration using GUAMI and PurgeFlag
5GC AMF Purge where the AMF first invokes Nudm SDM Unsubscribe to remove the UDM subscriber data subscription and then performs Nudm UECM Deregistration using GUAMI and PurgeFlag

What to Check in an AMF Purge Trace

AMF Purge troubleshooting should not begin from Registration Request, and there is usually no need to start with the gNB or UPF. The main issue is state consistency between the AMF and UDM.

Useful checkpoints include:

  • SDM Subscription: verify that the AMF sends Unsubscribe for the correct SUPI and Subscription ID;

  • UDM Response: confirm that the SDM deletion completes successfully and that the UDM removes the original subscription relationship;

  • UECM Registration: verify that the AMF performs Deregistration against the correct Access Type and UE registration record;

  • GUAMI: confirm that the GUAMI carried in the request matches the serving AMF information stored by the UDM;

  • PurgeFlag: confirm that the request correctly identifies the operation as Purge handling;

  • AMF Local Context: after the UDM-side operations complete, verify that the AMF actually removes the relevant Subscriber Data and MM Context.

If the SDM Subscription has already been removed but the AMF continues to retain the old MM Context, the problem is more likely to be in local AMF cleanup. If SDM Unsubscribe itself fails, the next checks should include the Subscription ID, SUPI and the corresponding subscription relationship stored in the UDM.

Purge completion should therefore not be judged by the appearance of a particular NAS message. A more reliable criterion is whether the AMF local context, UDM data subscription and UECM registration state are all consistent with the fact that the UE is no longer registered.

FAQ

Is AMF Purge the Same as Implicit Deregistration?

Not exactly. Implicit deregistration can lead to subsequent Purge handling, but Purge more specifically refers to the AMF cleaning up Subscriber Data and MM Context after deregistration and removing the related SDM subscription and UECM registration in the UDM.

Does AMF Purge Require the UE to Send a NAS Message?

Not necessarily. In an implicit deregistration scenario, the UE may already be unreachable. The main Purge signaling occurs between the AMF and UDM, so a trace can contain no UE-side Registration Request or Deregistration Request.

What Does Nudm_SDM_Unsubscribe Do?

It removes the Subscriber Data subscription that the AMF previously established for the UE. After the subscription is canceled, the UDM no longer sends subsequent subscriber-data change notifications to that AMF through the deleted subscription.

What Is the Purpose of PurgeFlag?

UECM Deregistration during Purge can carry a Purge-related indication so that the UDM knows the AMF is performing cleanup of the corresponding registration relationship. In trace analysis, PurgeFlag should be interpreted together with the GUAMI and the related UECM Registration.

Why Is Registration Not Performed Again During the Purge Procedure?

Purge handles cleanup after an old registration relationship has ended; it does not establish a new one. If the UE later accesses the 5GS again, it enters the appropriate Registration procedure based on its current UE and network state. That is a separate signaling sequence.

Recommended Products
catalogue
customer service Phone
We use cookie to improve your online experience. By continuing to browse this website, you agree to our use of cookie.

Cookies

This Cookie Policy explains how we use cookies and similar technologies when you access or use our website and related services. Please read this Policy together with our Terms and Conditions and Privacy Policy so that you understand how we collect, use, and protect information.

By continuing to access or use our Services, you acknowledge that cookies and similar technologies may be used as described in this Policy, subject to applicable law and your available choices.

Updates to This Cookie Policy

We may revise this Cookie Policy from time to time to reflect changes in legal requirements, technology, or our business practices. When we make updates, the revised version will be posted on this page and will become effective from the date of publication unless otherwise required by law.

Where required, we will provide additional notice or request your consent before applying material changes that affect your rights or choices.

What Are Cookies?

Cookies are small text files placed on your device when you visit a website or interact with certain online content. They help websites recognize your browser or device, remember your preferences, support essential functionality, and improve the overall user experience.

In this Cookie Policy, the term “cookies” also includes similar technologies such as pixels, tags, web beacons, and other tracking tools that perform comparable functions.

Why We Use Cookies

We use cookies to help our website function properly, remember user preferences, enhance website performance, understand how visitors interact with our pages, and support security, analytics, and marketing activities where permitted by law.

We use cookies to keep our website functional, secure, efficient, and more relevant to your browsing experience.

Categories of Cookies We Use

Strictly Necessary Cookies

These cookies are essential for the operation of the website and cannot be disabled in our systems where they are required to provide the service you request. They are typically set in response to actions such as setting privacy preferences, signing in, or submitting forms.

Without these cookies, certain parts of the website may not function correctly.

Functional Cookies

Functional cookies enable enhanced features and personalization, such as remembering your preferences, language settings, or previously selected options. These cookies may be set by us or by third-party providers whose services are integrated into our website.

If you disable these cookies, some services or features may not work as intended.

Performance and Analytics Cookies

These cookies help us understand how visitors use our website by collecting information such as traffic sources, page visits, navigation behavior, and general interaction patterns. In many cases, this information is aggregated and does not directly identify individual users.

We use this information to improve website performance, usability, and content relevance.

Targeting and Advertising Cookies

These cookies may be placed by our advertising or marketing partners to help deliver more relevant ads and measure the effectiveness of campaigns. They may use information about your browsing activity across different websites and services to build a profile of your interests.

These cookies generally do not store directly identifying personal information, but they may identify your browser or device.

First-Party and Third-Party Cookies

Some cookies are set directly by our website and are referred to as first-party cookies. Other cookies are set by third-party services, such as analytics providers, embedded content providers, or advertising partners, and are referred to as third-party cookies.

Third-party providers may use their own cookies in accordance with their own privacy and cookie policies.

Information Collected Through Cookies

Depending on the type of cookie used, the information collected may include browser type, device type, IP address, referring website, pages viewed, time spent on pages, clickstream behavior, and general usage patterns.

This information helps us maintain the website, improve performance, enhance security, and provide a better user experience.

Your Cookie Choices

You can control or disable cookies through your browser settings and, where available, through our cookie consent or preference management tools. Depending on your location, you may also have the right to accept or reject certain categories of cookies, especially those used for analytics, personalization, or advertising purposes.

Please note that blocking or deleting certain cookies may affect the availability, functionality, or performance of some parts of the website.

Restricting cookies may limit certain features and reduce the quality of your experience on the website.

Cookies in Mobile Applications

Where our mobile applications use cookie-like technologies, they are generally limited to those required for core functionality, security, and service delivery. Disabling these essential technologies may affect the normal operation of the application.

We do not use essential mobile application cookies to store unnecessary personal information.

How to Manage Cookies

Most web browsers allow you to manage cookies through browser settings. You can usually choose to block, delete, or receive alerts before cookies are stored. Because browser controls vary, please refer to your browser provider’s support documentation for details on how to manage cookie settings.

Contact Us

If you have any questions about this Cookie Policy or our use of cookies and similar technologies, please contact us at support@becke.cc .