You can remove any input field or components using <visible>false</visible> in the <settings> node of the fieldset in ui component form.
Let’s assume you have created a custom form component in the admin panel UI or want to remove an existing field from the UI component, create a form XML file with the given code snippet.
<?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <fieldset name="customer"> <field name="company" formElement="input"> <settings> <title translate="true">Company</title> <visible>false</visible> </settings> </field> </fieldset> </form>
You have to set <visible>false</visible> under the field <settings> node.
Clear Cache using php bin/magento cache:flush.
You can remove any input field, button section, components using the visible false.