---
schema_version: "1"
id: cc4a348e99abd524adffd01409df50f3db727d8bc3bf2c04cf37da5eeb536a90
title: Rename Components
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/sfvscode/guides/deploy-retrieve/rename-components.md
canonical_url: https://developer.salesforce.com/docs/platform/sfvscode-extensions/guide/rename-components.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 166ba04ae82a915469f29918e3d0b32af516e5758701486a8f4281e2d564c546
products:
  - Salesforce Extensions for Visual Studio Code
  - salesforcedx
---
# Rename Components

You can rename a component and all the files (including test files for LWC components) associated with it using the **SFDX: Rename Component** command. The command prevents renaming if the new component name doesn’t follow required naming conventions. For Lightning Web Components, the command automatically revises the letter case, if needed.

Renaming a component in a project doesn't delete the component from the org. To rename components in your org:

1. Log in to your org and delete the component with the older name.
2. Rename the components in your project.
3. Deploy the components with the updated name.

