Q:

Magento 2: how to remove order actions elements?

Magento order actions: https://docs.magento.com/m2/2.2/ee/user_guide/sales/order-actions.html
Would like to remove some of these from the list, like "Print Credit Memos", "Print Shipping Labels"
Does anybody know how to do? Thank you

A:

Override vendor/magento/module-sales/view/adminhtml/ui_component/sales_order_grid.xml
Remove below code from it:
<action name="pdfcreditmemos_order">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="type" xsi:type="string">pdfcreditmemos_order</item>
                    <item name="label" xsi:type="string" translate="true">Print Credit Memos</item>
                    <item name="url" xsi:type="url" path="sales/order/pdfcreditmemos"/>
                </item>
            </argument>
        </action>
<action name="print_shipping_label">
                <argument name="data" xsi:type="array">
                    <item name="config" xsi:type="array">
                        <item name="type" xsi:type="string">print_shipping_label</item>
                        <item name="label" xsi:type="string" translate="true">Print Shipping Labels</item>
                        <item name="url" xsi:type="url" path="adminhtml/order_shipment/massPrintShippingLabel"/>
                    </item>
                </argument>
            </action>

