function preprocessingVersioningDelete(bucketName, bucketMD, objectMD, reqVersionId, nullVersionCompatMode) {
    let options = {};
    if (bucketMD.getVersioningConfiguration() && reqVersionId) {
        options = getVersionSpecificMetadataOptions(objectMD, nullVersionCompatMode);
    }
    if (!bucketMD.getVersioningConfiguration() || reqVersionId) {
        // delete data if bucket is non-versioned or the request
        // deletes a specific version
        options.deleteData = true;
    }
    return options;
}
preprocessingVersioningDelete - return versioning information for S3 to
manage deletion of objects and versions, including creation of delete markers
@param {string} bucketName - name of bucket
@param {object} bucketMD - bucket metadata
@param {object} objectMD - obj metadata
@param {string} [reqVersionId] - specific version ID sent as part of request
@param {boolean} nullVersionCompatMode - if true, behaves in null version compatibility mode
@return {object} options object with params:
{boolean} [options.deleteData=true|undefined] - whether to delete data (if undefined
 means creating a delete marker instead)
{string} [options.versionId] - specific versionId to delete
{boolean} [options.isNull=true|false|undefined] - if set, tells the
Metadata backend if we're deleting a new-style null version (stored
in master or null key), or not a null version.