{"id":3654,"date":"2023-08-30T07:34:37","date_gmt":"2023-08-30T06:34:37","guid":{"rendered":"https:\/\/help.expertsender.com\/?post_type=es&#038;p=3654"},"modified":"2024-06-24T13:39:30","modified_gmt":"2024-06-24T12:39:30","slug":"delete-from-suppression-list","status":"publish","type":"es","link":"https:\/\/help.expertsender.com\/pl\/emp\/api\/methods\/suppression-lists\/delete-from-suppression-list\/","title":{"rendered":"Delete from suppression list"},"content":{"rendered":"\n<p>Used to delete a single entry from suppression list specified by ID parameter. Successful request returns \u201c204 \u2013 No content\u201d HTTP code and empty response body.<\/p>\n\n\n\n<p>Request URL parameters:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Element\/attribute<\/th><th>Type<\/th><th>Notes<\/th><\/tr><\/thead><tbody><tr><td>apiKey<\/td><td>string<\/td><td>Your API key, required for authentication. Required.<\/td><\/tr><tr><td>ID<\/td><td>integer<\/td><td>Suppression list ID. Required as a part of address (not GET parameter). See example below.<\/td><\/tr><tr><td>entry<\/td><td>string<\/td><td>Entry to delete from specified suppression list. Required.<br>A valid entry can be:<br>email, e.g. username@domain.com\u00a0<br>domain, e.g. domain.com<br>MD5, e.g. 2c2ba4dc950fd1162c47b08fdcfabe24<br>SHA256, e.g. 000243c96f3d54cbcff3b2e234923033b23f3b0a6f9275a9c5e9300d415cc646\u00a0<br>phone number, e.g. 48501222333<br>dialing prefix, e.g. 77<\/td><\/tr><tr><td>entryType<\/td><td>string&nbsp;<\/td><td>Specifies whether the entry to be deleted from a Phone type suppression list is a phone number or dialing prefix.<br>This parameter will be ignored when provided for Email type suppression list).<br>Valid values:<br>phone<br>prefix<br>Optional. Defaults to phone.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Note: This method will ignore not found values. You will not receive an error when trying to delete an entry that is not present on suppression list.<\/p>\n\n\n\n<p>You will receive an error when sending an invalid or empty entry, though.<\/p>\n\n\n\n<p>Example URLs:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#A6ACCD;--cbp-line-number-width:8.4375px;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"https:\/\/api.esv2.com\/v2\/Api\/SuppressionLists\/123?apiKey=YOUR_API_KEY_HERE&amp;entry=username%40domain.com \nhttps:\/\/api.esv2.com\/v2\/Api\/SuppressionLists\/123?apiKey=YOUR_API_KEY_HERE&amp;entry=2c2ba4dc950fd1162c47b08fdcfabe24\" style=\"color:#A6ACCD;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg  style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-palenight\" style=\"background-color: #292D3E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #A6ACCD\">https:\/\/api.esv2.com\/v2\/Api\/SuppressionLists\/123?apiKey=YOUR_API_KEY_HERE&amp;entry=username%40domain.com <\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #A6ACCD\">https:\/\/api.esv2.com\/v2\/Api\/SuppressionLists\/123?apiKey=YOUR_API_KEY_HERE&amp;entry=2c2ba4dc950fd1162c47b08fdcfabe24<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h.tekyo3o03wkf_l\"><strong>Examples<\/strong><\/h3>\n\n\n\n<p>Request:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#A6ACCD;--cbp-line-number-width:8.4375px;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"DELETE https:\/\/api.esv2.com\/v2\/Api\/SuppressionLists\/123?apiKey=test_api_key1&amp;entry=test%40wwwfwf.pl HTTP\/1.1 \nAccept-Encoding: gzip,deflate \nUser-Agent: Jakarta Commons-HttpClient\/3.1 \nHost: api.esv2.com\" style=\"color:#A6ACCD;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg  style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-palenight\" style=\"background-color: #292D3E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #A6ACCD\">DELETE https:\/\/api.esv2.com\/v2\/Api\/SuppressionLists\/123?apiKey=test_api_key1&amp;entry=test%40wwwfwf.pl HTTP\/1.1 <\/span><\/span>\n<span class=\"line\"><span style=\"color: #A6ACCD\">Accept-Encoding: gzip,deflate <\/span><\/span>\n<span class=\"line\"><span style=\"color: #A6ACCD\">User-Agent: Jakarta Commons-HttpClient\/3.1 <\/span><\/span>\n<span class=\"line\"><span style=\"color: #A6ACCD\">Host: api.esv2.com<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>OK response:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#A6ACCD;--cbp-line-number-width:8.4375px;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"HTTP\/1.1 204 No Content \nCache-Control: private \nServer: Microsoft-IIS\/7.5 \nX-AspNetMvc-Version: 2.0 \nX-AspNet-Version: 2.0.50727 \nSet-Cookie: TIMEZONE=Central European Standard Time; path=\/ \nX-Powered-By: ASP.NET \nDate: Wed, 19 Oct 2011 12:15:04 GMT\" style=\"color:#A6ACCD;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg  style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-palenight\" style=\"background-color: #292D3E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #A6ACCD\">HTTP\/1.1 204 No Content <\/span><\/span>\n<span class=\"line\"><span style=\"color: #A6ACCD\">Cache-Control: private <\/span><\/span>\n<span class=\"line\"><span style=\"color: #A6ACCD\">Server: Microsoft-IIS\/7.5 <\/span><\/span>\n<span class=\"line\"><span style=\"color: #A6ACCD\">X-AspNetMvc-Version: 2.0 <\/span><\/span>\n<span class=\"line\"><span style=\"color: #A6ACCD\">X-AspNet-Version: 2.0.50727 <\/span><\/span>\n<span class=\"line\"><span style=\"color: #A6ACCD\">Set-Cookie: TIMEZONE=Central European Standard Time; path=\/ <\/span><\/span>\n<span class=\"line\"><span style=\"color: #A6ACCD\">X-Powered-By: ASP.NET <\/span><\/span>\n<span class=\"line\"><span style=\"color: #A6ACCD\">Date: Wed, 19 Oct 2011 12:15:04 GMT<\/span><\/span><\/code><\/pre><\/div>\n","protected":false},"author":5,"featured_media":0,"parent":3645,"menu_order":300,"template":"","format":"standard","emp-category":[],"class_list":["post-3654","es","type-es","status-publish","format-standard","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/es\/3654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/es"}],"about":[{"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/types\/es"}],"author":[{"embeddable":true,"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/users\/5"}],"version-history":[{"count":3,"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/es\/3654\/revisions"}],"predecessor-version":[{"id":10842,"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/es\/3654\/revisions\/10842"}],"up":[{"embeddable":true,"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/es\/3645"}],"wp:attachment":[{"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/media?parent=3654"}],"wp:term":[{"taxonomy":"emp-category","embeddable":true,"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/emp-category?post=3654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}