Clear Transcations with a date range

Hello
Following sql file clear all Transcation done until now. It is possible to add a date range to clear only Transcation in this date range? For exemple, i need to clear all transactions in past month ( July 2019)

[CBL]Clear Database Transactions.sql

DELETE FROM [TicketEntities]
GO
DELETE FROM [Tickets]
GO
DELETE FROM [AccountTransactionDocuments]
GO
DELETE FROM [AccountTransactions]
GO
DELETE FROM [AccountTransactionValues]
GO
DELETE FROM [Calculations]
GO
DELETE FROM [CostItems]
GO
DELETE FROM [InventoryTransactionDocuments]
GO
DELETE FROM [InventoryTransactions]
GO
DELETE FROM [Orders]
GO
DELETE FROM [PaidItems]
GO
DELETE FROM [PeriodicConsumptionItems]
GO
DELETE FROM [PeriodicConsumptions]
GO
DELETE FROM [ProductTimerValues]
GO
DELETE FROM [Payments]
GO
DELETE FROM [WarehouseConsumptions]
GO
DELETE FROM [WorkPeriods]
GO
UPDATE [Numerators] SET Number = 0
GO
UPDATE [EntityStateValues] SET EntityStates = ‘[{“S”:“Available”,“SN”:“Status”}]’ Where EntityStates like ‘%Status%’
GO

It is possible. Google SQL and there are a lot of tutorials on how to use SQL. Also recommend getting Microsoft SQL Server Management Studio to connect to your database you can practice with queries there.

You will be on your own more than likely I have not seen anyone on the forum build that yet.

Most people just backup the database and then wipe everything.