what is the sql to delete an user correctly in joomla 3 and 4?

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Locked
skyfranky
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 102
Joined: Wed May 10, 2006 4:35 am

what is the sql to delete an user correctly in joomla 3 and 4?

Post by skyfranky » Fri Jul 29, 2022 7:07 am

Hi

what is the sql to delete an user correctly in joomla 3 and 4?


thanks,

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2901
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: what is the sql to delete an user correctly in joomla 3 and 4?

Post by SharkyKZ » Fri Jul 29, 2022 7:17 am

There is no really correct query to delete a user. You should use the user model to make sure the plugins are triggered and data is deleted from all related tables.

skyfranky
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 102
Joined: Wed May 10, 2006 4:35 am

Re: what is the sql to delete an user correctly in joomla 3 and 4?

Post by skyfranky » Fri Jul 29, 2022 7:24 am

I am writing an Rest API to del joomla 3 user from mobile app (can not use joomla 4), and wonder what SQL should be used. joomla 4 has del user API, can use the same SQL for joomla 3?
Last edited by skyfranky on Fri Jul 29, 2022 7:42 am, edited 2 times in total.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30923
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: what is the sql to delete an user correctly in joomla 3 and 4?

Post by Per Yngve Berg » Fri Jul 29, 2022 7:28 am



Locked

Return to “Joomla! 3.x Coding”