How to empty old dates from raw data?

Is there a way to empty part of the raw data bucket based on date range?