A plea has been moved in the Kerala High Court against the recent capture of two wild elephants which had forayed into inhabited areas in Palakkad and Wayanad districts of the state and created panic among locals there, saying the actions of the forest department were illegal.