resource.delete(true, null);
} catch (CoreException e) {
Activator.getDefault().logError("Error deleting experiment element", e);
}
}
<BUG>}
ITmfProjectModelElement[] traces = project.getTracesFolder().getChildren().toArray(new ITmfProjectModelElement[0]);
for (ITmfProjectModelElement element : traces) {</BUG>
if (element instanceof TmfTraceElement) {
TmfTraceElement trace = (TmfTraceElement) element;

resource.delete(true, null);
} catch (CoreException e) {
Activator.getDefault().logError("Error deleting experiment element", e);
}
}
}
}
TmfTraceFolder tracesFolder = project.getTracesFolder();
if (tracesFolder != null) {
ITmfProjectModelElement[] traces = tracesFolder.getChildren().toArray(new ITmfProjectModelElement[0]);
for (ITmfProjectModelElement element : traces) {
if (element instanceof TmfTraceElement) {
TmfTraceElement trace = (TmfTraceElement) element;
