function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sanket NagpureSanket Nagpure 

how to delete Lightning Web Component from salesforce org ?

Best Answer chosen by Sanket Nagpure
Khan AnasKhan Anas (Salesforce Developers) 
Hi Sanket,

Greetings to you!

Please refer to the below link (check my answer) which might help you further with the above requirement.

https://developer.salesforce.com/forums/?id=9062I000000XjlQQAS

You can also delete the LWC from VSCode and push the changes using SFDX.

Alternatively, you can delete the component using SFDX:
sfdx force:source:delete -p <path-to-the-component-folder-on-your-machine>

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas

All Answers

Team NubesEliteTeam NubesElite
Hi Sanket Nagpure,
Open Developer Console
Open Your lightning component from File -> Open Lightning Resource
Click on File Delete or use shortcut Ctrl+Delete


Thank You
www.nubeselite.com

Developement | Training | Consulting

Please mark this as solution if your problem resolved.
Khan AnasKhan Anas (Salesforce Developers) 
Hi Sanket,

Greetings to you!

Please refer to the below link (check my answer) which might help you further with the above requirement.

https://developer.salesforce.com/forums/?id=9062I000000XjlQQAS

You can also delete the LWC from VSCode and push the changes using SFDX.

Alternatively, you can delete the component using SFDX:
sfdx force:source:delete -p <path-to-the-component-folder-on-your-machine>

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
This was selected as the best answer