Tried to made delete function - unwork