> ## Documentation Index
> Fetch the complete documentation index at: https://docs.megaport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Terminating a Port

> This help topic describes how to terminate a physical Port directly from the Megaport Portal.

export const Image = ({src, alt = '', caption, width, height, shadow}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Image -';
  if (typeof src !== 'string') {
    src = String(src);
  }
  if (!src || src === 'undefined') {
    console.error(`${errorPrefix} \`src\` is required — rendering an empty string instead`);
    return <></>;
  }
  const img = <img className={['mega-image-style', shadow ? 'shadow' : ''].join(' ')} src={src} alt={alt} width={width} height={height} style={{
    display: 'block'
  }} />;
  return caption ? <figure>
      {img}
      <figcaption style={{
    textAlign: 'center',
    width
  }}>{caption}</figcaption>
    </figure> : img;
};

export const Link = ({href, children}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Link -';
  if (typeof href !== 'string') {
    href = String(href);
  }
  if (!href || href === 'undefined') {
    console.error(`${errorPrefix} the \`href\` property is required — rendering an empty string instead`);
    return <></>;
  }
  if (href.includes('{') || href.toUpperCase().includes('%7B')) {
    console.error(`${errorPrefix} could not resolve a variable in href "${href}" — rendering an empty string instead`);
    return <></>;
  }
  const isExternal = (/^https?:\/\//).test(href);
  return <a href={href} className="link" target={isExternal ? '_blank' : undefined} rel={isExternal ? 'noreferrer' : undefined}>
      {children ?? href}
      {isExternal && <span className="sr-only"> (opens in a new tab)</span>}
    </a>;
};

You can terminate a Port directly from the Megaport Portal. Terminating a Port on a contract term will result in an early termination fee (ETF) equivalent to 100% of the remainder of the term.

For more information about Port contract terms, see [Port Pricing and Contract Terms](/finance/port-pricing). You can waive the ETF yourself by ordering an eligible replacement service. For more information, see [Managing Early Termination Fees (ETF Management)](/finance/etf-management).

**To terminate a Port**

1. In the <Link href="https://portal.megaport.com">Megaport Portal</Link>, go to the **Services** page.

2. Click the trash icon next to the Port you want to terminate.

   <Image src="/images/connections/delete-port.png" alt="Delete Port" shadow={true} width={300} />

   The Terminate Services window appears. Early termination fees will display here, if applicable.

   <Image src="/images/connections/delete-port-cancel-reason.png" alt="Terminate Port" shadow={true} width={700} />

3. In the **Cancellation Reason** drop-down list, select the reason that you are terminating the Port. We use this information to help us improve your customer experience.

   These options are available:

   * Moving to a Cloud-Native Solution
   * Changing Data Centers
   * Ordered in Error or Reordering
   * Proof of Concept / Test
   * Project Ended
   * Switching to Alternative Provider
   * Pricing
   * Product Performance
   * Reason not Listed

   <Note>
     - **Ordered in Error or Reordering** should be selected if you have upgraded or downgraded the service speed and re-ordered.
     - **Reason not Listed** should be selected to specify a different reason to those listed. Use the free text field to explain the reason for terminating the service. This field has a maximum of 400 characters.
     - You can also provide additional details in the free text field for any of the cancellation reasons.
   </Note>

4. Click **Yes, Terminate Service** to confirm the Port termination, or click **No, Keep Services** to cancel.\
   The Port and its associated VXCs are deleted from the Megaport network.

   Terminating a Port that is configured as part of a diversity pair reverts the diversity setting of the other Port in the pairing. For example, if Port 1 is diverse from Port 2 and you terminate Port 2, Port 1 loses its diversity setting. You are prompted for confirmation.

## Terminating a diverse Port

Usually, terminating a Port that is deployed in a diversity-enabled location is the same as terminating any other Port. However, if you configure a new, unpurchased Port to be diverse from a deployed Port, and you then delete the deployed Port, the new Port will lose its diversity setting.\
For example, consider the following scenario:

* Port 1 is purchased and deployed.
* Port 2 is configured to be diverse from Port 1, but you haven't finalized the order.

In this scenario, if you terminate Port 1 then Port 2 will have its diversity setting removed after you confirm the termination. To reconfigure Port 2 to be diverse from a different Port, you must edit Port 2.

For more information about diverse Ports, see [Port Diversity](/connections/port-diversity).
