As per Magento 2.4.x requirement, Elasticsearch is mandatory, While developing / design project, sometimes need to disable Elasticsearch in Magento 2.4.x based as per working project need.
The following below CLI Command .
php bin/magento module:disable Magento_Elasticsearch,Magento_Elasticsearch6,Magento_InventoryElasticsearch,Magento_Elasticsearch7