code: public static void delete(final String domainId, final String endpointId) throws AppPlatformException, IOException {
          assert(endpointId != null);
          final BandwidthClient client = BandwidthClient.getInstance();
          client.delete(String.format(client.getUserResourceUri(BandwidthConstants.ENDPOINTS_URI_PATH), domainId)+ "/"+endpointId);
      }
docs: Permanently deletes the Endpoint.
  @param domainId the domain id.
  @param endpointId the Endpoint id.
  @throws AppPlatformException API Exception
  @throws IOException unexpected error