[SalesForce] Delete/Rename lightning Component

I have two queries
Is there only one way to delete lightning Component? that is
Dev Console File–> Delete

How To Rename Lightning Component?

Best Answer

Update:

You can also query for the AuraDefinitionBundle from developer console and simply change the DeveloperName

The other way to do this via ANT migration tool .You will create a destructive xml like below

destructiveChanges.xml

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
    <members>page</members>
    <members>example</members>
    <name>AuraDefinitionBundle</name>
</types>
<version>37.0</version>

and then an empty package.xml

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<version>37.0</version>
</Package>

Use ANT to build this and this would destroy the component bundle mentioned in the destrutiveChanges xml

Renaming Currently is pain ,I prefer recreating a new component and copy paste it and delete older via dev console .Using tools like ANT or force.com CLI is quicker .