How to remove custom product attributes on module disable?

I added 2 custom product attributes with the help of setup/InstallSchema.php in my Magento 2 custom module. It’s working fine. But, I can’t remove these Product attributes on module disable from the site admin module manager section. I write code for remove attributes in setup/Uninstall.php file like the following public function uninstall(SchemaSetupInterface $setup, ModuleContextInterface $context…

Can’t install Magento 2 via composer on Windows 10

I try to install magento 2 via composer. composer create-project –repository=https://repo.magento.com/ magento/project-community-edition . But I get “out of memory”. I have 16 GB RAM. So I restarted windows and tried again directly after restart without any programs open, but it still throws this error. Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to…