Thanks for the response Sandro. When I execute,<div><br></div><div>echo "SELECT DropGeometryTable('pimapine')" | psql -U smaranh geospecies</div><div><br></div><div>this is the output that I am getting back,</div>

<div><br></div><div><div>ERROR:  function dropgeometrytable(unknown) does not exist</div><div>LINE 1: SELECT DropGeometryTable('pimapine')</div><div>               ^</div><div>HINT:  No function matches the given name and argument types. You might need to add explicit type casts.</div>

<div><br></div><div>Thanks,</div><div>Smaran</div><br><div class="gmail_quote">On Thu, Nov 22, 2012 at 7:24 AM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Nov 21, 2012 at 05:43:34PM -0700, Smaran Harihar wrote:<br>
> Hi,<br>
><br>
> I added a shapefile to the PostGIS using,<br>
><br>
>     ogr2ogr -f PostgreSQL PG:"host=server_ip user=username dbname=dbname<br>
> password=password" yourshapefile.shp;<br>
><br>
> Now I want to remove it. What is the command line code for that?<br>
<br>
</div>Assuming the table created by ogr2ogr is named "yourshapefile"<br>
(which you should verify) the call would be:<br>
<br>
echo "SELECT DropGeometryTable('yourshapefile')" | psql -U username dbname<br>
<br>
--strk;<br>
<br>
 <a href="http://www.cartodb.com" target="_blank">http://www.cartodb.com</a> - Map, analyze and build applications with your data<br>
<br>
                                       ~~ <a href="http://strk.keybit.net" target="_blank">http://strk.keybit.net</a><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks & Regards<div>Smaran Harihar</div><br>
</div>