This is what my DB looks like:

I am trying to delete all the records from both these tables where ID = 8.
This is what I've tried:
DELETE from users1,pontaj WHERE users1.id, pontaj.id IN(8)
If you had defined potaj table with pontaj.id as
CREATE TABLE pontaj (
id int, foreign key(id) references users1(id)
on delete cascade on update cascade
)
then just executing
DELETE from users1 WHERE users1.id IN(8)
would have deleted records from both parent and child tables.
users1.id has an index defined on it, this solution should work. Otherwise define a key(id) in users1 tables. But your images map shows that the referred field is a primary key and hence it should have worked without any issue.on delete set null.show create table pontaj; and show create table salariu; and see how the child columns are defined as.