Delete user
import requests
requests.delete(
"https://journeys-api.50skills.app/v1/users/uCgEu5BJ/",
)
fetch("https://journeys-api.50skills.app/v1/users/uCgEu5BJ/", {
method: "DELETE"
})
.then(response => {
if (response.ok) {
console.log("User deleted successfully");
} else {
console.error("Failed to delete user");
}
})
.catch(error => console.error(error));
Last updated