Combining Pkg.gc(collect_delay=Dates.Second(0)) with rm packagename beforehand did the trick. thanks
Pkg.gc(collect_delay=Dates.Second(0))
rm packagename