@Override
    public boolean remove(String index) {
        final WriteResult<MongoIndexRange, ObjectId> remove = collection.remove(DBQuery.in(IndexRange.FIELD_INDEX_NAME, index));
        return remove.getN() > 0;
    }
@Test
    @MongoDBFixtures("MongoIndexRangeServiceTest.json")
    public void remove() throws Exception {
        assertThat(indexRangeService.findAll()).hasSize(2);

        assertThat(indexRangeService.remove("graylog_1")).isTrue();
        assertThat(indexRangeService.remove("graylog_1")).isFalse();

        assertThat(indexRangeService.findAll()).hasSize(1);
    }