Delete object after some Time

    Hello Guys,

    I was Wondering if there is a way to “Expire” Data object in a Custom Table? Like when a week passes it auto deletes it self ?
    Thanks in advance

Hi Gehad,

Not out of the box. You can create a Timer which periodically runs and performs the clean up you need.

Regards,
Mark

Can i get Further Explanation on how to deploy timer to server ?

I Currently Have This Class in my Code :

import com.backendless.servercode.annotation.BackendlessTimer;
import com.backendless.servercode.extension.TimerExtender;
@BackendlessTimer("{'startDate':1441613460000,'frequency':{'schedule':'custom','repeat':{'every':60}},'timername':'BookingTimer'}")
public class BookTimer extends TimerExtender
{
@Override
public void execute( String appVersionId ) throws Exception
{
System.out.println("Hello I am a Timer");
}
}Thanks in Advance

The process of deployment is described here:

https://backendless.com/documentation/business-logic/java/bl_production.htm