/** * Delete collection. * * @param name the name * @return true, if successful */ public boolean deleteCollection(String name) { ArangoCollection collection = db.collection(name); if (collection.exists()) { collection.drop(); return collection.exists(); } return false; }
@Override public void drop() throws DataAccessException { collectionCache.remove(new CollectionCacheKey(collection.db().name(), collection.name())); try { collection.drop(); } catch (final ArangoDBException e) { throw translateExceptionIfPossible(e); } }
@Override public void drop() throws DataAccessException { collectionCache.remove(new CollectionCacheKey(collection.db().name(), collection.name())); try { collection.drop(); } catch (final ArangoDBException e) { throw translateExceptionIfPossible(e); } }