code: public static void delete( String baseName ,
                                 File dataFolder ,
                                 boolean force ) throws DataStoreException
      {
      	File[] journalFiles = findJournalFiles(baseName, dataFolder);
      	if (journalFiles.length > 0)
      	{
      		if (force)
          	{
      			for (int i = 0; i < journalFiles.length; i++)
      			{
      	        	if (!journalFiles[i].delete())
      	            	throw new DataStoreException("Cannot delete file : "+journalFiles[i].getAbsolutePath());
      			}  
          	}
      		else
      			throw new DataStoreException("Journal file exist : "+journalFiles[0].getAbsolutePath());
      	}
            	
      	
          File atFile = new File(dataFolder,baseName+AbstractBlockBasedDataStore.ALLOCATION_TABLE_SUFFIX);
          if (atFile.exists())
              if (!atFile.delete())
              	throw new DataStoreException("Cannot delete file : "+atFile.getAbsolutePath());
  
          File dataFile = new File(dataFolder,baseName+AbstractBlockBasedDataStore.DATA_FILE_SUFFIX);
          if (dataFile.exists())
              if (!dataFile.delete())
              	throw new DataStoreException("Cannot delete file : "+dataFile.getAbsolutePath());
      }
docs: Delete the filesystem of a store