mv /opt/blueworx/am/config/<previously configured hostname> /opt/blueworx/am/config/<new hostname>
The actual configuration that BAM uses is stored in the file /opt/blueworx/am/config/<hostname>/bam.config, however if this file is corrupted or deleted, the sample configuration can be restored with the following command:
cp /opt/blueworx/am/config/bam.config.sample /opt/blueworx/am/config/<hostname>/bam.config
See TOML Configuration File Format for details on the configuration file format.