automatic packet update (delete old version of package)

automatic packet update (delete old version of package)

how can i configure that when a packet is updated the old version of the packet is not only automatically replaced in the self service portal but also the old version of the packet is deleted?