public void deleteTable(final byte[] tableName) throws IOException {
    StringBuilder path = new StringBuilder();
    path.append(pathPrefix);
    if (accessToken != null) {
      path.append(accessToken);
      path.append('/');
    }
    path.append(Bytes.toStringBinary(tableName));
    path.append('/');
    path.append("schema");
    int code = 0;
    for (int i = 0; i < maxRetries; i++) {
      Response response = client.delete(path.toString());
      code = response.getCode();
      switch (code) {
        case 200:
          return;
        case 509:
          try {
            Thread.sleep(sleepTime);
          } catch (InterruptedException e) {
            throw (InterruptedIOException) new InterruptedIOException().initCause(e);
          }
          break;
        default:
          throw new IOException("delete request to " + path.toString() + " returned " + code);
      }
    }
    throw new IOException("delete request to " + path.toString() + " timed out");
  }
Deletes a table.
@param tableName name of table to delete
@throws IOException if a remote or network exception occurs
hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/client/RemoteAdmin.java