Forum OpenACS Development: acs_user::delete

Collapse
Posted by Iuri Sampaio on
What is the purpose of [acs_user::delete -user_id $user_id -permanent] ?

Isn't to actually remove the user for good from the system?
No remaining info, not a single reference.

Collapse
2: Re: acs_user::delete (response to 1)
Posted by Dave Bauer on
Yes,

The trick is that it does not delete foreign key references to the object so those need to be updated to null foreign key or the referenced rows also deleted depending on your application. The toolkit can't know the business logic of your specific use to know what the right thing to do is, and the data model does not support removing objects when the user who created the object is deleted.

https://openacs.org/api-doc/proc-view?proc=acs_user%3a%3adelete