Users - Delete API

Delete the specified User.

Method DELETE

Parameters

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

How to Use

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

Response

{
    "data": {
        "id": "1",
        "name": "John Doe",
        "email": "john.doe@example.com",
        "email_verified_at": "2024-11-11T12:00:00Z",
        "created_at": "2024-10-01T08:45:00Z",
        "updated_at": "2024-11-10T15:30:00Z"
    }
}

Try Now

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

Test with Open API

View Open API

Previous
Todos API

Our Proudly Sponsors 🎉

© 2025 Simple CRUD API. All rights reserved.