To unleash events, use google.maps.event.clearInstanceListeners .
There is no implemented method to remove autocomplete functionality. You can create an input clone before creating Automplete, and when you want to remove autocomplete functionality, replace the current input with a clone.
<script src="https://maps.googleapis.com/maps/api/js?v=3&libraries=places&.js"></script> <input/> <span> <input type="button" value="remove input" onclick="google.maps.event.trigger(window.autocomplete,'remove'); this.parentNode.parentNode.removeChild(this.parentNode);"/> <input type="button" value="remove autocomplete-functionality" onclick="google.maps.event.trigger(window.autocomplete,'remove',true); this.parentNode.parentNode.removeChild(this.parentNode);"/> <span>
The script adds remove-listener to Automplete. The listener takes a single argument. Set to true when you want to remove autocomplete functionality. Otherwise, the input will be completely deleted.
source share