[GRASS-user] g.remove multiple files in python

Moritz Lennert mlennert at club.worldonline.be
Fri Jan 25 06:46:22 PST 2013


On 25/01/13 15:28, Margherita Di Leo wrote:
> Hi,
>
> how to convert something like:
>
> g.remove rast=`g.mlist pat=r_start* sep=,`
>
> in python?

Try with g.mremove:

grass.run_command('g.mremove', rast='r_start*', flags='f')

Moritz


More information about the grass-user mailing list