[RESOLVED] What category is (On message creation- delete oldest message if there are 500 messages)

For example I have a table called 'messages' and every time a message is added to the table;
And I want it to check if there are 500 messages; and if so- delete the oldest message from the table.

I'm not sure what this would fall under: edge functions, plain js, idk. I'm new to this stuff.
Was this page helpful?