We suggest against direct database removal as it may leave some remnants in other tables. It's best to do this operation from the GUI. I suggest first upgrading to 8.0.4 (it's more stable). Then go to an AP list view, select modify devices, bulk select the down devices and then delete.