-- Delete data
delete plsql_profiler_data where runid in
(select runid from plsql_profiler_runs
where run_owner = user
and run_date < trunc(sysdate) - 365);
-- Delete units
delete plsql_profiler_units where runid in
(select runid from plsql_profiler_runs
where run_owner = user
and run_date < trunc(sysdate) - 365);
-- Delete runs
delete plsql_profiler_runs
where run_owner = user
and run_date < trunc(sysdate) - 365;