Delete a Block

Endpoint Overview

This endpoint allows you to permanently remove a block from your Venddor store. Use this operation with caution as deleted blocks cannot be recovered.

DELETE /api/blocks/{block_id}

Path Parameters

Parameter Type Required Description
block_id integer Yes The unique identifier of the block you want to delete.

Example Request

DELETE /api/blocks/42

This request deletes the block with ID 42.

Response Status Codes

Status Code Description
204 No Content The block has been deleted successfully.
404 Not Found The specified block doesn't exist.
Important: Deleting a block is permanent and cannot be undone. Make sure you have a backup or are certain you want to remove the block before proceeding with this operation.

Implementation Notes

When using the Delete Block endpoint, consider the following best practices: