<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:16px">Finally, I solved the problem with use "overwrite" option in every loop and delete the files after the loop has completed. Sorry not to send the script and the warning report because it just too long, however, the problem has been reported previously <a href="http://git.net/ml/grass-user-gis/2015-09/msg00018.html" class="enhancr2_ced47a90-553b-324e-7697-b807884c65de" id="yui_3_16_0_ym19_1_1489215451051_10235">grass-user-gis - [GRASS-user] g.remove: WARNING Unable to remove misc element - msg#00018 - Programming Mailing Lists<br></a><div id="yui_3_16_0_ym19_1_1489215451051_10272"><br></div><div id="yui_3_16_0_ym19_1_1489215451051_10271"><br></div><div id="enhancr2_ced47a90-553b-324e-7697-b807884c65de" class="yahoo-link-enhancr-card yahoo-link-enhancr-not-allow-cover ymail-preserve-class ymail-preserve-style" style="max-width:400px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;" data-url="http://git.net/ml/grass-user-gis/2015-09/msg00018.html" data-type="yenhancr" data-category="article" data-embed-url="" data-size="medium" dir="ltr" contenteditable="false"> <a href="http://git.net/ml/grass-user-gis/2015-09/msg00018.html" style="text-decoration:none !important; color: #000 !important" class="yahoo-enhancr-cardlink" target="_blank" rel="noreferrer" id="yui_3_16_0_ym19_1_1489215451051_11824"> <table class="card-wrapper" style="max-width:400px;" id="yui_3_16_0_ym19_1_1489215451051_11823" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1489215451051_11822"><tr id="yui_3_16_0_ym19_1_1489215451051_11821"> <td id="yui_3_16_0_ym19_1_1489215451051_11820" width="400"> <table class="card-info" style="background:#fff;max-width:400px;border:1px solid #e0e4e9;border-bottom:3px solid #000000;" id="yui_3_16_0_ym19_1_1489215451051_11819" cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody id="yui_3_16_0_ym19_1_1489215451051_13584"><tr id="yui_3_16_0_ym19_1_1489215451051_13583"> <td style="vertical-align:top;padding:16px 0 16px 12px;" id="yui_3_16_0_ym19_1_1489215451051_13582">  </td> <td style="vertical-align:middle;padding:16px 12px;width:99%;" id="yui_3_16_0_ym19_1_1489215451051_13655"> <h2 class="card-title" style="margin:0 0 4px 0;font-size:16px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;word-break:break-word;">grass-user-gis - [GRASS-user] g.remove: WARNING Unable to remove misc element - msg#00018 - Programming Mailing Lists</h2>  <div class="card-description" style="font-size:11px;line-height:15px;color:#999;word-break:break-word;"></div> </td> <td class="card-share-container"></td> </tr> </tbody></table> </td> </tr> </tbody></table> </a></div><div id="yui_3_16_0_ym19_1_1489215451051_11818"><br></div><br><div id="yui_3_16_0_ym19_1_1489215451051_13587" dir="ltr">regards,</div><div id="yui_3_16_0_ym19_1_1489215451051_11849"><br></div><div id="yui_3_16_0_ym19_1_1489215451051_13595">Andry<br></div><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: times new roman, new york, times, serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, March 10, 2017 4:30 PM, Moritz Lennert <mlennert@club.worldonline.be> wrote:<br></font></div>  <br><br> <div class="y_msg_container">[Please keep discussions on the list]<br clear="none"><br clear="none">On 10/03/17 09:46, andry rustanto wrote:<br clear="none">> Actually i want to crop some images using my aoi. I run grass loop in<br clear="none">> R, import one by one the images, crop and export the result into<br clear="none">> .tif, and delete the imported file. When the warning appear then the<br clear="none">> loop was stop prematurely, sometime after one loop, another time<br clear="none">> after several loops. I hope this can explain what i'am doing.<br clear="none"><br clear="none">Without seeing your R code it is difficult to know why the loop stops.<br clear="none"><br clear="none">The warning just indicates that g.remove tried to remove something that <br clear="none">didn't exist. Generally, this should not cause any problems.<br clear="none"><br clear="none">Moritz<div class="yqt0659312782" id="yqtfd46775"><br clear="none"><br clear="none">><br clear="none">> Pada 10 Mar 2017, pukul 09.23, Moritz Lennert<br clear="none">> <<a shape="rect" ymailto="mailto:mlennert@club.worldonline.be" href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>> menulis:<br clear="none">><br clear="none">>>> On 10/03/17 01:52, andry rustanto wrote: Dear GRASS users and<br clear="none">>>> experts,<br clear="none">>>><br clear="none">>>> I have an error when execute g.remove:<br clear="none">>>><br clear="none">>>> WARNING: Unable to remove misc element<br clear="none">>>><br clear="none">>>> which make my looping stop.<br clear="none">>>><br clear="none">>>> Any idea how to deal with this warning and make the loop<br clear="none">>>> continue?<br clear="none">>><br clear="none">>> I don't know how you are looping, but this is a warning, not an<br clear="none">>> error and normally does not stop programs. So more details about<br clear="none">>> what you are doing would help us help you :-)<br clear="none">>><br clear="none">>> Moritz<br clear="none">>><br clear="none">><br clear="none"><br clear="none"><br clear="none"></div><br><br></div>  </div> </div>  </div></div></body></html>