<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Deleting files using FatFs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103463/deleting-files-using-fatfs</link><description>Hi 
 I have an application running on an nRF52833, developed using nRF5 SDK with Keil uVision. It is using the FatFs filing system to save data. To date, there has only ever been one file used – which is overwritten every time a ‘new’ file is open. This</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Sep 2023 23:31:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103463/deleting-files-using-fatfs" /><item><title>RE: Deleting files using FatFs</title><link>https://devzone.nordicsemi.com/thread/445025?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 23:31:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f44f3fd-5e51-4b1a-966e-22a4e72f9dc9</guid><dc:creator>garrettb</dc:creator><description>&lt;p&gt;Problem solved - my own mistake - I was calling the file delete (f_unlink) function from a background task, not main line code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting files using FatFs</title><link>https://devzone.nordicsemi.com/thread/445002?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 16:54:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52dfb68e-0dcb-420b-854a-8111c6a52a61</guid><dc:creator>garrettb</dc:creator><description>&lt;p&gt;HI&lt;/p&gt;
&lt;p&gt;The function will return if I give it the wrong / non-existing filename.&lt;/p&gt;
&lt;p&gt;However, if I give it the filename of an existing file, it doesn&amp;#39;t return. I have a watchdog implemented which isn&amp;#39;t kicking in - so I need to investigate more.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting files using FatFs</title><link>https://devzone.nordicsemi.com/thread/444565?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 16:57:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56c60fae-dbd2-4ac1-9478-6a3c551dfdd1</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Maybe try (assuming file exists):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;fresult = f_unlink(&amp;quot;FILE1.TXT&amp;quot;);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;f_result = f_unlink(fno.fname);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>