Commandline was opened with target as path hence it was not deleting in my case. Closed the terminal and done a maven clean and it worked like magic.