code: public void deleteResource(final String resourceName) throws WebApplicationException {
          synchronized (resourceName) {
              try {
                  mDatabase.truncateResource(new SessionConfiguration(resourceName, null));
              } catch (TTException e) {
                  throw new WebApplicationException(e);
              }
          }
      }
docs: This method is responsible to delete an existing database.
  
  @param resourceName
  The name of the database.
  @throws WebApplicationException
  The exception occurred.