Previous Topic

Next Topic

delobj – Delete Objects from Database

The delobj command deletes objects from the database.

For more information on using the delobj command to delete specific object types, see the Character-based Querying and Reporting Tools User Guide.

The delobj command has the following format:

delobj dbname|vnode::dbname[/server_class] objectspec | all [-silent]
[-uusername] [-Ggroupid]

Previous Topic

Next Topic

Object Specification for delobj Command—Specify Objects to Delete

The object specification names one or more objects to be deleted from the database using the delobj command. You can specify one type of object only.

The objectspec parameter has the following format:

-report|-form|-joindef|-graph|-application|-qbfname {objname} [-wildcard]
[-include filename]

Previous Topic

Next Topic

delobj Examples

This command deletes the empreport report from the empdata database:

delobj empdata -report empreport

This command deletes the videoapp application from the video database, specifying user name Adder:

delobj video -uAdder -application videoapp

This command deletes the forms listed in a prepared namefile:

delobj video -form -include namefile

The namefile contains the following:

wa1 wa2 wa3 wa4 wa5 wa6 wa7 wa8 wa9 wa10 wa11 wa12 wa13
wr1 wr2 wr3 wr4 wr5 wr6 wr7 wr8 wr9 wr11 wr12 wr13
wr14 wr15 wr16 #Includes all wr names except wr10.

In the following examples, assume objects: qbfname_1, qbfnameA1, and qbfnameB1.

The following command deletes all three objects using the underscore as a wildcard character:

delobj dbname -qbfname qbfname_1 -wildcard

The previous command without the -wildcard flag deletes the qbfname qbfname_1 only:

delobj dbname -qbfname qbfname_1

The previous command is identical to the following command, which escapes the underscore character, preventing it from being used as a wildcard character, even though the -wildcard flag is specified:

delobj dbname -qbfname qbfname\_1 -wildcard


© 2007 Ingres Corporation. All rights reserved.