1.2. deletecontext

deletecontext is the tool to delete contexts and all data stored that belong to it. This includes all database entries and files in the infostore but no E-Mail components.

1.2.1. Parameters

-h,--helpPrints a help text
--environmentShow info about commandline environment
--nonlRemove all newlines (\n) from output
-c,--contextid <contextid>The id of the context
-N,--contextname <contextname>Context name

1.2.2. Extra parameters when authentication is enabled

-A,--adminuser <string>Master Admin user name
-P,--adminpass <string>Master Admin password

1.2.3. Return value

0 on success

>0 on failure

1.2.4. Mandatory parameters

(contextid or contexname) {adminuser adminpass}

1.2.5. Command output

On success:

context <contextid> deleted

On failure:

context <contextid> could not be deleted: <reason from server>

1.2.6. Example

root@oxhe~# /opt/open-xchange/sbin/deletecontext -c 123

context 123 deleted