log.trace("Aquiring content write lock");
lockWrite();
try
{
// Remove the deployment from the filesystem
ProfileDeployment deployment = getDeployment(vfsPath);
VirtualFile root = deployment.getRoot();
if(deleteFile && root != null)
{
// Delete the file
if(root.delete() == false)
throw new IOException("Failed to delete: " + root);
cleanUpRoot(root);
}
// Cleanup
return super.removeDeployment(deployment.getName());
}
finally
{
unlockWrite();
if (log.isTraceEnabled())