PHP: How can I change and/or remove the value of a user variable?
EnekoAlonso - August 24, 2007 - 22:36
By loading a user with user_load function I can access all user variables like $user->xxx, which is very convenient. What I haven't found how to do is how to modify or delete the value of one of those variables.
If it's not enough clear, I'm talking about the variables stored in the "data" column on users table. I wouldn't mind to do it on a SQL statement, if it wasn't as hard as it is.
I have searched on the forum, snippets and api pages with no luck.
Any clue? Thanks a lot!

API
Look at user_load and user_save in the API documentation. For extensions that you have created using the profile module, see profile_load_profile and profile_save_profile, also on api.drupal.org.