Thursday 31 October 2013

All features must have unique directories to avoid overwriting files error

The solution cannot be deployed.  Directory "*" associated with feature '*' in the solution is used by feature '*' installed in the farm. All features must have unique directories to avoid overwriting files.

This was awful the following in powershell worked for me

Clear-Host
$features = Get-SPFeature –Limit ALL | Where-Object {$_.DisplayName -like "ccw*"}

foreach($f in $features)
{
Write-Host $f.Id $f.Farm $f.DisplayName
$f.Delete()

}

my features had no scope and weren't showing up through central admin