DECLARE @TestId AS VARCHAR(100)='58311'
delete FROM [SanaPlatform].[dbo].[WebStoreAzureSettings] where [WebStoreId] =@TestId
delete FROM [SanaPlatform].[dbo].[WebstoreDatabaseUsers] where [WebStoreId] =@TestId
delete FROM [SanaPlatform].[dbo].[WebStoreDomains] where [WebStoreId] =@TestId
delete FROM [SanaPlatform].[dbo].[WebstoreEmailSettings] where [WebStoreId] =@TestId
delete FROM [SanaPlatform].[dbo].[WebstoreInfoEmailSentLogs] where [WebStoreId] =@TestId
delete FROM [SanaPlatform].[dbo].[WebstoreLifeCycles] where [WebStoreId] =@TestId
delete FROM [SanaPlatform].[dbo].[WebstoreMaintenanceEmails] where [WebStoreId] =@TestId
delete FROM [SanaPlatform].[dbo].[WebStores] where [WebStoreId] = @TestId