I have a list of GCM registered users and their corresponding registration Ids in a database table, and I actually want to unregister a user whenever he/she is deleted from
unregister() is now deprecated:
unregister()
https://developers.google.com/android/reference/com/google/android/gms/gcm/GoogleCloudMessaging.html#unregister()
Quoting the docs you should call:
Instead use InstanceID.deleteToken() or InstanceID.deleteInstanceID().