2

I have installed Magento 2.2.4 with sample data. Now I need to remove all sample data, and I found a solution from Magento DevDoc

I used command as suggested,

php bin/magento sampledata:remove 

But I got this error as following,

Loading composer repositories with package information

Removal failed, reverting ./composer.json to its original content.


  [Composer\Downloader\TransportException]                                   
  The 'https://repo.magento.com/packages.json' URL required authentication.  
  You must be using the interactive console to authenticate 

What did I miss?

4
  • did you get the solution??? I'm facing the same issue
    – Asad Khan
    Commented Oct 29, 2019 at 10:35
  • @AsadKhan I gave up the command line to remove the teste data on that site that didn't work. So I removed all test data directly in database with mysql query. Commented Oct 29, 2019 at 15:14
  • then can you please share the query if you still have???
    – Asad Khan
    Commented Oct 30, 2019 at 5:27
  • @AsadKhan Sorry, I actually confused myself. the mysql query I used was for removing the test data that is generated from Performance Tookit. not for SampleData. So I haven't really solved the problem with removing the sampleData by using command line. In case you need to remove Performance Toolkit genereated data, you can refer to this magento.stackexchange.com/a/242423/26668 Commented Oct 30, 2019 at 9:45

1 Answer 1

0

in your Magento root folder, you will found auth.json.sample just rename it to auth.json and add your public and privet key from your marketplace account

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.