Deleting Components From the Database

XPECMD allows you to remove components from the database. To do this, you must open an Exclusive connection to the database, and then use the DBDel command to remove the component. This command utilizes the SQE syntax to specify which components you want to remove. The following example shows how to do this.

xpecmd> dbopen myServer /excl               (Open an exclusive connection to the database)
xpecmd> dbdel 'comp:^My component'         (Delete "My Component")

Note   Be careful when using this command. You should ensure that you either specify an exact-match SQE as described in Finding Components in the Database, or that the Display Name you specify does not cause unintended components to be included in the search as well. Improper use of this function could cause irreparable damage to your database.

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.