Delete the data store.
()
| 220 | /** Delete the data store. |
| 221 | */ |
| 222 | @Override |
| 223 | public void delete() throws PersistenceException { |
| 224 | if(storageDir == null || ! Files.rmdir(storageDir)) |
| 225 | throw new PersistenceException("couldn't delete " + storageDir); |
| 226 | |
| 227 | Gate.getDataStoreRegister().remove(this); |
| 228 | } // delete() |
| 229 | |
| 230 | /** Delete a resource from the data store. |
| 231 | */ |