You can only delete an object after it has fulfilled its retention period. If you do not lock the bucket, you can temporarily remove the retention policy to remove objects and revoke the retention policy.