Harshad,
You can run this to avoid the prompt:
root@ubuntu:/# export DEBIAN_FRONTEND=noninteractive; apt-get -y purge percona-server-server-5.6 percona-server-client-5.6
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libnet-daemon-perl libaio1 libdbi-perl libmysqlclient18 libperconaserverclient18.1 libdbd-mysql-perl libplrpc-perl percona-server-common-5.6
Use ‘apt-get autoremove’ to remove them.
The following packages will be REMOVED:
percona-server-client-5.6* percona-server-server-5.6*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 141 MB disk space will be freed.
(Reading database … 17711 files and directories currently installed.)
Removing percona-server-server-5.6 …
- Stopping MySQL (Percona Server) mysqld [ OK ]
Purging configuration files for percona-server-server-5.6 …
Removing percona-server-client-5.6 …
Processing triggers for ureadahead …
Please note that the default setting is to not remove all databases from the datadir.
You can then run:
root@ubuntu:/# export DEBIAN_FRONTEND=dialog
to revert back to the default frontend setting.
Is Percona Server installed on your staging/testing environment? Are you evaluating Percona Server 5.6?
Let us know if the above suggestion helps.