You can't do that with openlayers, except with WFS-T<div><br></div><div>You will need to develop it. (simple solution here)</div><div><br></div><div>1. use getfeatureinfo (WMS request) on the feature, and extract the PK.</div>
<div>2. Delete the feature in the database with the PK you got above. (This needs to be developed in some server side language)</div><div>3. Refresh the wms, and it would be removed.</div><div class="gmail_extra"><br clear="all">
<br>--<br><br>Med venlig hilsen / Kind regards<br><br>Tue Topholm<br>Sugee<br>Tlf: +45 32 13 32 32<br>W: <a href="http://www.sugee.dk" target="_blank">http://www.sugee.dk</a><br>
<br><br><div class="gmail_quote">2012/11/24 yassine bouderaa <span dir="ltr"><<a href="mailto:bouderaa.yassine@gmail.com" target="_blank">bouderaa.yassine@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br clear="all"><div><p class="MsoNormal"><span lang="EN-US">Hi.</span></p>

<p class="MsoNormal"><span lang="EN-US">I need to
know how can I delete a feature from a wms layer loaded from a database
postgres to geoserver and displayed using openlayer , I don’t want to delete a
feature from a vector layer but from a wms .</span></p>

<p class="MsoNormal"><span lang="EN-US">Thanks for
ur help.</span></p></div>
</div>
<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>
<br></blockquote></div><br></div>