When installing I made the error of loading all the sample data. How do I delete the "sample" users???
Thanks
When installing I made the error of loading all the sample data. How do I delete the "sample" users???
Thanks
You con't do this but you can set users in Inactive status. It's a protection because usually user's are assigned to others objects.
Not exactly the answer I was looking for. I had already set them to inactive I was trying to tidy things up a bit.
Thanks
In a SugarCRM 4.5.1.h installation you can recognize the demo user data on the id of the users table entries.
user admin has always id = 1
demo users have ids like jim_id, chris_id ,..
normal users have timestamp ids like 14bdd19b-dda6-ba25-e68d-475d646cabab
So you can delete alle demo data in mySQL QueryBrowser by doing the following:
1. delete all customfield table entries in tables *_cstm.
example (accounts):
2. delete alle reference table entriesCode:delete from accounts_cstm where id_c in (select id from accounts where assigned_user_id like '%_id');
example (accounts x contacts):
3. delete all audit table entriesCode:delete from accounts_contacts where account_id in (select id from accounts where assigned_user_id like '%_id'); delete from accounts_contacts where contact_id in (select id from contacts where assigned_user_id like '%_id');
example (accounts):
4. delete all standard object table entriesCode:delete from accounts_audit where parent_id in (select id from accounts where assigned_user_id like '%_id') or created_by like '%_id';
example (accounts):
5. finally delete all demo usersCode:delete from accounts where assigned_user_id like '%_id';
example:
BEFORE you start make a BACKUP of your database!!!Code:delete from users where id like '%_id';
DO NOT START WITHOUT BACKUP !
DO NOT START WITH RUNNING WEB APPLICATION!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks