Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

Removing existing resources (DELETE)

09/04/2025, by Ivan

This page shows examples of DELETE requests for the JSON:API module.

Enabling delete operation

Visit /admin/config/services/jsonapi
and check the "Accept all JSON:API create, read, update, and delete operations." option.

Accept Create, Read, Update, Delete methods
Accept Create, Read, Update, Delete methods

Authentication

Typically some form of authentication is used for DELETE requests. The examples below all use Basic Authentication. Enable the HTTP Basic Authentication module, set the permission for the API user (and role) and add set the encoded username and password to the 'Authorization' request header.

The example header on this page requires a Drupal user 'api' with password 'api'. This user must have permission to delete the requested content.

Headers

All DELETE request examples use the following headers:

  • Content-Type:application/vnd.api+json
  • Authorization:Basic YXBpOmFwaQ==

Basic DELETE request

URL: http://example.com/jsonapi/node/article/{{article_uuid}}

Response

HTTP 204 (No content) response. Empty response body.
The article {{article_uuid}} is now deleted.

Article from Drupal Documentation.