How to remove magento 2 modules totally?

fix composer.json like this

    "require": {

        [...]

    },

    "replace": {

        "magento/module-admin-notification": "*",

        "magento/module-dhl": "*",

        "magento/module-fedex": "*",

        "magento/module-marketplace": "*",

        "magento/module-multishipping": "*",

        "magento/module-captcha": "*",

        "magento/module-persistent": "*",

        "magento/module-catalog-rule-configurable": "*",

        "magento/module-authorizenet": "*",

        "magento/module-google-adwords": "*",

        "magento/module-sample-data": "*",

        "magento/module-send-friend": "*",

        "magento/module-swagger": "*",

        "magento/module-swagger-webapi": "*",

        "magento/module-swatches": "*",

        "magento/module-swatches-layered-navigation": "*",

        "magento/module-tax-import-export": "*",

        "magento/module-google-optimizer": "*",

        "magento/module-ups": "*",

        "magento/module-usps": "*",

        "magento/module-braintree": "*",

        "magento/module-signifyd": "*",

        "magento/module-analytics": "*",

        "magento/module-catalog-analytics": "*",

        "magento/module-customer-analytics": "*",

        "magento/module-quote-analytics": "*",

        "magento/module-review-analytics": "*",

        "magento/module-sales-analytics": "*",

        "magento/module-wishlist-analytics": "*",

        "temando/module-shipping-m2": "*",

        "dotmailer/dotmailer-magento2-extension": "*",

        "shopialfb/facebook-module": "*",

        "klarna/module-kp": "*",

        "klarna/module-ordermanagement": "*",

        "klarna/module-core": "*",

        "amzn/amazon-pay-sdk-php": "*",

        "amzn/amazon-pay-and-login-with-amazon-core-module": "*",

        "amzn/login-with-amazon-module": "*",

        "amzn/amazon-pay-module": "*",

        "vertex/module-tax": "*"

    },

    "config": {

        [...]