Creating a Stored Procedure to Delete Records from Tables

What am I doing wrong? Trying to execute this within MemSQL Studio:

USING db_data CREATE PROCEDURE sp_delete_data() AS
BEGIN
    DELETE FROM tbl_prices_01
    WHERE uploadTime < (SELECT MAX(dataUploadTime) FROM tbl_prices_01);
    DELETE FROM tbl_prices_02
    WHERE uploadTime < (SELECT MAX(dataUploadTime) FROM tbl_prices_02);
    DELETE FROM tbl_prices_03
    WHERE uploadTime < (SELECT MAX(dataUploadTime) FROM tbl_prices_03);
END;

What error are you getting? If you are deleting all the old data, is there a reason you aren’t truncating prior to insert?