function deleteVeeamCapabilities(bucketName, objectKey, bucketMd, log, callback) {
    const capabilityFieldName = isSystemXML(objectKey) ? 'SystemInfo' : 'CapacityInfo';

    // Ensure file exists in metadata before deletion
    if (!bucketMd._capabilities?.VeeamSOSApi
        || !bucketMd._capabilities?.VeeamSOSApi[capabilityFieldName]) {
        return callback(errors.NoSuchKey);
    }
    // eslint-disable-next-line no-param-reassign
    delete bucketMd._capabilities.VeeamSOSApi[capabilityFieldName];

    // Delete the whole veeam capacity if nothing is left
    if (Object.keys(bucketMd._capabilities.VeeamSOSApi).length === 0) {
        // eslint-disable-next-line no-param-reassign
        delete bucketMd._capabilities.VeeamSOSApi;
        // Delete all capacities if no capacity is left
        if (Object.keys(bucketMd._capabilities).length === 0) {
            // eslint-disable-next-line no-param-reassign
            delete bucketMd._capabilities;
        }
    }
    // Update the bucket metadata
    return metadata.deleteBucketCapabilities(bucketName, bucketMd, 'VeeamSOSApi', capabilityFieldName, log, err => {
        if (err) {
            return callback(err);
        }
        return callback();
    });
}
Deletes system.xml or capacity.xml files for a given bucket.

@param {string} bucketName - bucket name
@param {string} objectKey - object key to delete
@param {object} bucketMd - bucket metadata from the db
@param {object} log - logger object
@param {function} callback - callback
@returns {undefined} -