delete « Array « Ruby






1.delete method removes a matching object from an array, returning the deleted object if found.
2.Array.delete takes a block.