Screen freezes when deleting view

When deleting from couchbase, screen freezes. I am deleting like so

resetViews1(db)
resetViews2(db)
resetViews3(db)
resetViews4(db)
resetViews5(db)
resetViews6(db)
resetViews7(db)
resetViews8(db)
resetViews9(db)

Where each resetViews method is calling

database.getView(view_id).delete()

I have pinpointed the freeze to come from resetViews7 method. Inspecting logcat it shows

`com.couchbase.cbforest.ForestException: file handle is busy'.

I have tried removing the 7th call and if removed the screen does not freeze up. Unsure why this is causing a screen freeze.

We don’t support ForestDB storage. This was always an optional and unsupported storage engine in 1.x.

Also, Couchbase Lite 1.4 is nearing the end of its support period, so it would be a really good idea to start moving to 2.x soon.