Is that really necessary? Couldn't the cache just be gitignored?
Also, if it is indeed necessary, the method name should be changed, since it's not only deleting assets anymore.