Hi Aichi,
If number of 401 worksheets more than 500 for single store, then you may use following
Please Backup the database first. If you don't have SQL knowledge, its better to delete it manually.
One worksheet can have multiple stores, but i am assuming in this case you have only one store per 401 worksheet since its auto generated.
To find the worksheets IDs to delete (replace the store id XX with the storeid you required to delete)
---------------------------------------
select WorkSheetStore.Id as WorkSheetStoreid, Worksheet.id as WorksheetId, Worksheet.Style,WorkSheetStore.StoreId,WorkSheetStore.Status
from Worksheet left outer join WorkSheetStore on WorkSheet.Id = WorkSheetStore.WorkSheetId
where WorkSheetStore.StoreId=XX and Style='401'
--------------------------------------
Now it will show you two IDs. Both IDs you need to delete.
WorksheetstoreID and WorksheetID.
Use Following script to delete the respective store from worksheet
Replace 'XXXXX' with WorksheetstoreID (Ex : ('268887','266888', Etc)
------------------------------------
Delete from worksheetstore where ID in ('XXXXX','XXXXXX')
----------------------------------
Use Following script to delete the respective worksheets
Replace 'YYYYY' with WorksheetID numbers (Ex : ('287','288', Etc)
------------------------------------------------------------------------------------------------------
Delete from worksheet where ID in ('YYYY','YYYYY')
------------------------------------------------------------------------------------------------------
Again : Back up first. IDs are two different for WorksheetStore and WorksheetID. Dont mix it up.!
Hope this will help.
Regards