You must delete any migration tasks that are associated with the replication instance before you can delete it.