Do I have to remove Parse Relation manually when Parent is deleted?

Do I have to remove Parse Relation manually when Parent is deleted?

// suppose we have a book object
var book = ...

// create a relation based on the authors key
var relation = book.relation("authors");

// generate a query based on that relation
var query = relation.query();

// now execute the query

And if I need to delete book from the db, how can I treat the author relation?
Or, is it removed automatically from the relation db?

Thank you.

It is not automatically deleted but there is no need for deleting them unless you want to save some database storage. In this case, you’d need to run another operation to delete them. An idea could be using a beforeDelete trigger.

Thanks to that, it became clear.