interaction with an object

All in all. There is a Player with the tag “Player”. And there is a book. It is necessary that if the player presses the “E” key in the book, then objects from the array will be deleted.

Hello.

Could you be slightly clearer in your question? Are you dealing with C# scripts? Is the book a GameObject?