Delete - hardDeleteSharedObjectsByClass

Delete - hardDeleteSharedObjectsByClass

Description :

Some database tables contain rows that are referenced (shared) by more than one top-level object such as an Asset, Snapshot Job, Audit Job, BLPackage, Snapshot Job Run, etc.

These database tables can contain rows that are no longer referenced by objects. This command lets you delete these unreferenced rows.

Use the classType argument to specify the composite class for which you want to delete unreferenced rows. Use one of the following values:

  • SBLFile: This composite class is referenced by the depot objects, audit objects, and snapshot objects. This cleans up references to files that are no longer used. Note that this cleans up file information from the database. If you want to remove the file from the file system, use the Delete : cleanupFileServer command.
  • SBlAcl: This composite class refers to orphan (no longer referenced) ACLs.
  • SBlValue: This composite class is referenced by generic model objects. This cleans up references to internal values generated by BMC Server Automation, such as values created for specific instances of a property class or a Depot object. For example, when you create an Audit Job, BMC Server Automation generates a BLValue for that instance of the Audit Job.
  • SBLFileChecksum: This cleans up checksum file references that are no longer used.

Note: Additional shared data is deleted by the SharedData object type of the Delete cleanupHistoricalData command.

Return type : java.lang.Object

Command Input :

Variable Name

Variable Type

Description

classType

String

Name of the composite class.

continueOnError

Boolean

Continue execution on error (true/false).

durationInMin

java.lang.Integer

Maximum duration for the operation in minutes. Note that the total time for cleanup may exceed the time specified by this variable, depending on environment factors that might cause the batch processing for cleanup to run for a longer time.

Example

The following example shows how to delete database rows.

Script

blcli Delete hardDeleteSharedObjectsByClass SBLFile true 240 



Was this page helpful? Yes No Submitting... Thank you

Comments