class DeleteCommand implements CommandRunnable {

    @Override
    public ReplyMessage run(int argc, byte[][] argv) throws Exception {
        if (argc != 2) {
            return ErrorMessage.WrongArgcMessage;
        }

        String val = map.remove(new String(argv[1], Protocol.KEYCAFE_CHARSET));

        if (val != null) {
            return new BulkStringMessage(val);
        } else {
            return StringMessage.OkMessage;
        }
    }

    public  DeleteCommand(Map<String, String> map);

}