Moved deleteItem function into the get data, but link still doesn't delete.
DeleteLink function.