Passing a and object and a table to a function

sorted.

now wheres the delete button