Delete resources associated with the domain

After running the samples, you will need to release resources associated with the domain that can then be used for other purposes. The script in this sample demonstrates one approach to releasing these resources.

Use this script to delete resources associated with the domain

$ ./delete-weblogic-domain-resources.sh \
  -d  domain-uid[,domain-uid...] \
  [-s max-seconds] \
  [-t]

The required option -d takes domain-uid values (separated by commas and no spaces) to identify the resources that should be deleted.

To limit the amount of time spent on attempting to delete resources, use -s. The option must be followed by an integer that represents the total number of seconds that will be spent attempting to delete resources. The default number of seconds is 120.

The optional -t option shows what the script will delete without executing the deletion.

To see the help associated with the script:

$ ./delete-weblogic-domain-resources.sh -h