<?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>Is there a remove/delete API against sd_ble_gatts_service_add?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66444/is-there-a-remove-delete-api-against-sd_ble_gatts_service_add</link><description>Is there a remove/delete API against sd_ble_gatts_service_add ? 
 
 If not, what is alternative to remove service. 
 
 Thanks, 
 Rahul</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Sep 2020 08:46:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66444/is-there-a-remove-delete-api-against-sd_ble_gatts_service_add" /><item><title>RE: Is there a remove/delete API against sd_ble_gatts_service_add?</title><link>https://devzone.nordicsemi.com/thread/271989?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 08:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bbc2330-c3e4-48f7-bb1a-0a06fc1c98ee</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Yes. Except that in services_init() you would exclude the service that you want to remove.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a remove/delete API against sd_ble_gatts_service_add?</title><link>https://devzone.nordicsemi.com/thread/271931?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 06:18:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cae244d2-a6d6-4754-8716-9ace40127c2b</guid><dc:creator>RahulR</dc:creator><description>&lt;p&gt;Is this something you are suggesting?&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; softdevice_handler_sd_disable();&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ble_stack_init();&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; services_init();&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a remove/delete API against sd_ble_gatts_service_add?</title><link>https://devzone.nordicsemi.com/thread/271842?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 14:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b856ecd1-7408-47dc-9bbd-7603f7f5b7c0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Unfortunately, there is not. If you want to remove a service, you need to disable the softdevice, enable it again, and not add the service that you wanted to remove.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>