Looks like you've got a VBA / VB.NET code sample, and you need to convert it to C#. Try:
RapportXlSheet.Shapes[imageName].Delete();
EDIT: As discussed in the comments, the indexer isn't supported properly. You have to use the
Item
method instead:
RapportXlSheet.Shapes.Item(imageName).Delete();