You can use this command below to remove the quoted text through API:

client.interface.trigger("click", {id: "delete_quoted_text"})