Craft adds unwanted date to filename
Try using replaceAssetFile(), something like this (untested):
$rename = Craft::$app-&gt;assets-&gt;replaceAssetFile($asset-&gt;id,$asset-&gt;getFolder(),$newFileName);