xpack.ml.deleteExpiredData

edit
client.xpack.ml.deleteExpiredData()