Use correct function to remove application