---
title: Avoid Maintaining Legacy Code With Outdated API Versions
description: "**Impact area** Scalability **Severity** Warning **Affected element** Apex Class Apex Trigger ## Rule ID **SF-0101** ## Impact API versions that are more than nine releases or three years old can hinder performance. Legacy code should be updated to use new…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/salesforce-rules/avoid-maintaining-legacy-code-with-outdated-api-versions/"
updated: "2025-03-21"
category: Rules
---

# Avoid Maintaining Legacy Code With Outdated API Versions

**Impact area**

Scalability

**Severity**

Warning

**Affected element**

Apex Class

Apex Trigger

## Rule ID

**SF-0101**

## Impact

API versions that are more than nine releases or three years old can hinder performance. Legacy code should be updated to use new API versions.

## Remediation

Refactor the code to upgrade to the latest API version. If the code is not being maintained by a third party provider, consider removing it from your Org.
