Automatically delete jobs / builds when feature branch is merged

Hi,

Is there anyway to remove all the builds / jobs / artifacts of a feature branch when it is merged?
It will help to remove a lot of unwanted CI artifacts.

Thanks,
Shantur