If you want to delete legacy database table then you can follow this blog. In blog, We try to delete database entries using root script in magento2.Here is script for delete entries from magento database. Create file deleteData.php in magento root directory. You can run script in magento root path on server. You can use php $argv for pass parameters while run script. See documentHere is code you delete entries with parameter command.Command php deleteData.php…
Sometimes we need to perform some quick action for get data or update data in magento database then this root script help. Root script is easy to create and use. sometimes it’s save lots time of developer and client. We can create root script for different reasons. For example, if you want to get the list of product which contain attribute x value y and update those product attribute a value b.We can use root…