To remove the finished pulp tasks: # mongo > use pulp_database > db.task_status.remove({state:"finished"}) > quit()