Per eliminare un'organizzazione effettuare una delle seguenti operazioni:
- Se l'organizzazione č stata creata nella console di gestione organizzazione, procedere come
segue:
- Trovare il valore ORGENTITY.ORGENITY_ID per l'organizzazione creata.
- Eliminare la voce di tabella ORGENTITY.
- Eliminare la riga MEMBER che contiene MEMBER.MEMBER_ID=ORGENTITY.ORGENTITY_ID.
- Eliminare tutte le righe MBRREL che contengono MBRREL.DESCENDANT_ID=ORGENTITY.ORGENTITY_ID
- Se l'organizzazione č stata creata utilizzando i comandi di registrazione del rivenditore, vengono riportate tabelle primarie e secondarie compilate. La tabella
MEMBER č la tabella di database a cui sono state aggiunte le informazioni principali. Le tabelle secondarie comprendono: MBRREL,
MBRROLE,
APRVSTATUS,
USERREG,
ADDRESS e
ADDRBOOK. Per eliminare un'organizzazione, inserire le seguenti istruzioni SQL:
select users_id from userreg where logonId = <'User Name' entered during registration> delete from member where member_id = <users_id of the new user above><users_id of the new user above> select orgentity_id from orgentity where orgentityname = <'Your organization name' entered during registration> select mbrgrp_id from mbrgrp where owner_id = <orgentity_id above><orgentity_id above> delete from member where member_id = <mbrgrp_id of the mbrgrp above><mbrgrp_id of the mbrgrp above> delete from member where member_id = <orgentity_id from above><orgentity_id from above>
Nota: si raccomanda di visualizzare ciascuna tabella di database prima di eliminare un'organizzazione per verificare le informazioni che si decide di eliminare.