Albums - Delete API

Delete the specified Album.

Method DELETE

Parameters

Name Details Type Required
id The ID of the Album. integer Yes

How to Use

fetch('https://simplecrudapi.com/api/albums/1', {
  method: 'DELETE',
  headers: {
    'Content-Type': 'application/json'
  }
})
	.then(response => response.json())
	.then(data => console.log(data)})
	.catch(error => console.error(error)});

Response

{
    "data": {
        "id": 1,
        "title": "The Greatest Hits",
        "description": "A collection of the best songs from the 90s.",
        "release_date": "1999-11-09"
    }
}

Try Now

fetch('https://simplecrudapi.com/api/albums/1', {
  method: 'DELETE',
  headers: {
    'Content-Type': 'application/json'
  }
})
	.then(response => response.json())
	.then(data => console.log(data)})
	.catch(error => console.error(error)});

Test with Open API

View Open API

Our Proudly Sponsors 🎉

© 2025 Simple CRUD API. All rights reserved.