Destruction of protoplanetary discs in the Orion Nebula Cluster