Is it possible to force update SharePoint file properties or delete versions when the file is being edited by another user (i.e. locked), using power automate or rest API

Is it possible to force update SharePoint file properties or delete versions when the file is being edited by another user (i.e. locked), using power automate or rest API