let users = [
{name: 'vasya', age: 31, status: false, id: 1},
{name: 'petya', age: 30, status: true, id: 2},
{name: 'kolya', age: 29, status: true, id: 3},
{name: 'olya', age: 28, status: false, id: 4},
{name: 'max', age: 30, status: true, id: 5},
{name: 'anya', age: 31, status: false, id: 6},
{name: 'oleg', age: 28, status: false, id: 7},
{name: 'andrey', age: 29, status: true, id: 8},
{name: 'masha', age: 30, status: true, id: 9},
{name: 'olya', age: 31, status: false, id: 10},
{name: 'max', age: 31, status: true, id: 11}];
let container = document.createElement('div')
container.id = 'container'
document.body.append(container)
users.forEach(item => {
let cotainerSecond = document.createElement('div')
let button = document.createElement('button')
let content = document.createElement('div')
button.innerText = 'Удалить юзера'
content.innerText = `name:${item.name}\n age:${item.age}\n status:${item.status}`
cotainerSecond.append(content, button)
container.appendChild(cotainerSecond)
button.onclick = (e) => {
cotainerSecond.innerText = ''
}
})