<?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>remove unused file from my project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124601/remove-unused-file-from-my-project</link><description>I&amp;#39;m currently working on some projects for the nRF54 platform using NCS and VS Code. I want to delete the unused files in my project because the codebase has become too large. Is there a quick way to identify which folders I don&amp;#39;t need? Alternatively</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Sep 2025 07:53:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124601/remove-unused-file-from-my-project" /><item><title>RE: remove unused file from my project</title><link>https://devzone.nordicsemi.com/thread/549973?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2025 07:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3c78e81-ef02-44f0-bd11-273da45594f4</guid><dc:creator>DanielNG</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Third-party code is typically found in the lib/ext and platform/ext folders.&lt;br /&gt;You can use west ncs-sbom to generate a report of all licenses in your build. Please refer to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/west_commands/sbom/README.html#west-sbom"&gt;Software Bill of Materials&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: remove unused file from my project</title><link>https://devzone.nordicsemi.com/thread/549862?ContentTypeID=1</link><pubDate>Fri, 26 Sep 2025 07:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:653e25f2-4704-4219-b3f4-bed500dc3d8c</guid><dc:creator>Liny</dc:creator><description>&lt;p&gt;&lt;span&gt;could you tell me which folders in the SDK contain third-party libraries? I need to remove some libraries with less permissive open-source licenses to meet compliance requirements. For example, licenses like Zephyr&amp;#39;s Apache 2.0 are more friendly as they don&amp;#39;t force mandatory code disclosure.&lt;/span&gt;&lt;/p&gt;
&lt;div class="host-lopnbnfpjmgpbppclhclehhgafnifija" style="position:relative;"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: remove unused file from my project</title><link>https://devzone.nordicsemi.com/thread/549804?ContentTypeID=1</link><pubDate>Thu, 25 Sep 2025 12:32:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceb68143-e4ca-450c-9f8c-208070371ef8</guid><dc:creator>DanielNG</dc:creator><description>&lt;p&gt;Hi, there&amp;#39;s no automatic&amp;nbsp;&lt;span&gt;unused file/folder detection or copying tool in the SDK or VS Code extension.&lt;br /&gt;&lt;br /&gt;You can refer to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/dev_model_and_contributions/adding_code.html#workflow_2_freestanding_application_repository"&gt;Adding your own code&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://github.com/nrfconnect/ncs-example-application"&gt;nrfconnect/ncs-example-application: NCS example application, based on https://github.com/zephyrproject-rtos/example-application&lt;/a&gt;&amp;nbsp;to better manage your codebase&lt;br /&gt;&lt;br /&gt;You can create a &amp;quot;freestanding&amp;quot; application, where your code is outside the SDK tree and only references the SDK as a dependency. This keeps your repository small and focused&lt;br /&gt;&lt;br /&gt;You can run something like &amp;quot;west build -p always -b&amp;nbsp; nrf54l15dk/nrf54l15/cpuapp -- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON&amp;quot; to get a list of everything that compiled in &amp;quot;compile_commands.json&amp;quot; (in your build folder)&lt;br /&gt;&lt;br /&gt;Note: Don’t delete anything inside NCS/Zephyr. Only trim your application. &lt;br /&gt;The SDK is a collection of git modules that west/CMake expects.&amp;nbsp;Deleting inside NCS/Zephyr&amp;nbsp;will break builds and updates.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>