- refaktoring delete function (argument +array)