<commit_before>'use strict';

const storageManager = require('./../StorageManager'),
    Container = require('./../model/Container'),
    ResponseHeader = require('./../model/ResponseHeader');


class DeleteContainer {
    constructor() {
    }

    process(req, res, containerName) {
        storageManager.deleteContainer(containerName)
            .then((result) => {
                res.set(new ResponseHeader());
                res.status(200).send();
            })
            .catch((e) => {
                res.status(e.statusCode || 500).send(e.message);
                if (!e.statusCode) throw e;
            });
    }
}

module.exports = new DeleteContainer();<commit_msg>fixes #37<commit_after>'use strict';

const storageManager = require('./../StorageManager'),
    Container = require('./../model/Container'),
    ResponseHeader = require('./../model/ResponseHeader');


class DeleteContainer {
    constructor() {
    }

    process(req, res, containerName) {
        storageManager.deleteContainer(containerName)
            .then((result) => {
                res.set(new ResponseHeader());
                res.status(202).send();
            })
            .catch((e) => {
                res.status(e.statusCode || 500).send(e.message);
                if (!e.statusCode) throw e;
            });
    }
}

module.exports = new DeleteContainer();
{'fraction_non_alphanumeric': 0.1600877192982456, 'fraction_numerical': 0.01023391812865497, 'mean_word_length': 2.042222222222222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3070824', 'n_tokens_mistral': 375, 'n_tokens_neox': 351, 'n_words': 60}