Ok, do you have something like this in your code somewhere?<div>I can't remember where I got it from in the first place, but it will delete all the features that have no fid anymore, which may help.</div><div><br></div>
<div><br><div><br></div><div><div>var DeleteFeature = OpenLayers.Class(OpenLayers.Control, {</div><div>    initialize: function (layer, options) {</div><div>        OpenLayers.Control.prototype.initialize.apply(this, [options]);</div>
<div>        this.layer = layer;</div><div>        this.handler = new OpenLayers.Handler.Feature(</div><div>            this, layer, { click: this.clickFeature }</div><div>        );</div><div>    },</div><div>    clickFeature: function (feature) {</div>
<div>        // if feature doesn't have a fid, destroy it</div><div>        if (feature.fid == undefined) {</div><div>            this.layer.destroyFeatures([feature]);</div><div>        } else {</div><div>            feature.state = OpenLayers.State.DELETE;</div>
<div>            this.layer.events.triggerEvent("afterfeaturemodified",</div><div>                                           { feature: feature });</div><div>            feature.renderIntent = "select";</div>
<div>            this.layer.drawFeature(feature);</div><div>        }</div><div>    },</div><div>    setMap: function (map) {</div><div>        this.handler.setMap(map);</div><div>        OpenLayers.Control.prototype.setMap.apply(this, arguments);</div>
<div>    },</div><div>    CLASS_NAME: "OpenLayers.Control.DeleteFeature"</div><div>});</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Toby</div><div><br></div><div class="gmail_quote">On 25 September 2012 09:48, vGIS <span dir="ltr"><<a href="mailto:valentino1s73s@gmx.net" target="_blank">valentino1s73s@gmx.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The WFS-T Source is GeoServer and I also have a SaveStrategy and tryed your<br>
code, but it worked not for me. After saving, the features are still<br>
there...<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Cannot-delete-MultiPolygons-completely-tp5004085p5004210.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/Cannot-delete-MultiPolygons-completely-tp5004085p5004210.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</div></div></blockquote></div><br></div></div>