- Core API's
- >
- Tags API
- >
- Tags - Delete
Tags - Delete API
Delete the specified Tag.
Method DELETE
Parameters
Name | Details | Type | Required |
---|---|---|---|
id
|
The ID of the Tag. | integer | Yes |
How to Use
fetch('https://simplecrudapi.com/api/tags/1', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json'
}
})
.then(response => response.json())
.then(json => console.log(json))
.catch(error => console.error('Error deleting tag:', error));
Response
{
"data": {
"id": 1,
"name": "Education",
"description": "Resources and information for lifelong learning."
}
}
Try Now
fetch('https://simplecrudapi.com/api/tags/1', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json'
}
})
.then(response => response.json())
.then(json => console.log(json))
.catch(error => console.error('Error deleting tag:', error));