Delete a layout
const url = 'https://api.velumrelay.email/v1/layouts/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.velumrelay.email/v1/layouts/example \ --header 'Authorization: Bearer <token>'A layout that templates use can’t be deleted; reassign or delete those templates first.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Use a lowercase letter first, then a-z, 0-9 and _ (up to 48 characters)
Header Parameters
Section titled “Header Parameters”Only update if the current version is this one (e.g. "3", from the ETag). Otherwise you get 412.
Responses
Section titled “Responses”Deleted.
Headers
Section titled “Headers”Example
req_3kTMd9vXq2LwB8nYpR4sZaUnique ID of this request (req_ + 22 characters). Include it when you contact support.
Missing or invalid management key.
object
What went wrong, in plain words.
Example
{ "error": "invalid or missing management key"}No layout with that ID in your account.
object
What went wrong, in plain words.
Example
{ "error": "layout not found"}The layout is in use.
object
What went wrong, in plain words.
IDs of the templates that use it.
Example
{ "error": "layout is in use"}If-Match didn’t match the current version.
object
What went wrong, in plain words.
Example
{ "error": "version mismatch"}Rate limit exceeded (20 requests per second, bursts up to 40, per key). Wait for Retry-After seconds, then retry.
object
What went wrong, in plain words.
Example
{ "error": "rate limit exceeded"}Headers
Section titled “Headers”Example
1Example
req_3kTMd9vXq2LwB8nYpR4sZaUnique ID of this request (req_ + 22 characters). Include it when you contact support.