Is there a way to delete old/irrelevant uploads?

I have noticed when uploading through API that unused uploads (not attached to post) are removed automatically with some Job.